Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/swift/TBDGen/TBDGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class ModuleDecl;
/// output.
struct TBDGenOptions {
/// Whether this compilation has multiple IRGen instances.
bool HasMultipleIGMs;
bool HasMultipleIGMs = false;

/// Whether this compilation is producing a TBD for InstallAPI.
bool IsInstallAPI;
bool IsInstallAPI = false;

/// Only collect linker directive symbols.
bool LinkerDirectivesOnly = false;
Expand Down
2 changes: 0 additions & 2 deletions test/sil-llvm-gen/alloc.sil
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// REQUIRES: CODEGENERATOR=X86
// REQUIRES: CODEGENERATOR=ARM

// REQUIRES: rdar65712583

import Builtin

struct Pair<T> {
Expand Down
12 changes: 6 additions & 6 deletions tools/sil-llvm-gen/SILLLVMGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ int main(int argc, char **argv) {
auto *mod = CI.getMainModule();
assert(mod->getFiles().size() == 1);

auto getDescriptor = [&]() -> IRGenDescriptor {
const auto &TBDOpts = Invocation.getTBDGenOptions();
const auto &SILOpts = Invocation.getSILOptions();
auto &SILTypes = CI.getSILTypes();
auto moduleName = CI.getMainModule()->getName().str();
const PrimarySpecificPaths PSPs(OutputFilename, InputFilename);
const auto &TBDOpts = Invocation.getTBDGenOptions();
const auto &SILOpts = Invocation.getSILOptions();
auto &SILTypes = CI.getSILTypes();
auto moduleName = CI.getMainModule()->getName().str();
const PrimarySpecificPaths PSPs(OutputFilename, InputFilename);

auto getDescriptor = [&]() -> IRGenDescriptor {
if (PerformWMO) {
return IRGenDescriptor::forWholeModule(
mod, Opts, TBDOpts, SILOpts, SILTypes,
Expand Down