diff --git a/include/swift/TBDGen/TBDGen.h b/include/swift/TBDGen/TBDGen.h index f4d67280b92ec..72229a63707cc 100644 --- a/include/swift/TBDGen/TBDGen.h +++ b/include/swift/TBDGen/TBDGen.h @@ -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; diff --git a/test/sil-llvm-gen/alloc.sil b/test/sil-llvm-gen/alloc.sil index 7c06d15466789..93fc4900f6c66 100644 --- a/test/sil-llvm-gen/alloc.sil +++ b/test/sil-llvm-gen/alloc.sil @@ -8,8 +8,6 @@ // REQUIRES: CODEGENERATOR=X86 // REQUIRES: CODEGENERATOR=ARM -// REQUIRES: rdar65712583 - import Builtin struct Pair { diff --git a/tools/sil-llvm-gen/SILLLVMGen.cpp b/tools/sil-llvm-gen/SILLLVMGen.cpp index 3778cedc37842..97371119a6c30 100644 --- a/tools/sil-llvm-gen/SILLLVMGen.cpp +++ b/tools/sil-llvm-gen/SILLLVMGen.cpp @@ -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,