We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 097dd71 commit 4ca60feCopy full SHA for 4ca60fe
lib/Frontend/Frontend.cpp
@@ -55,8 +55,10 @@ std::string CompilerInvocation::getPCHHash() const {
55
56
void CompilerInstance::createSILModule() {
57
assert(MainModule && "main module not created yet");
58
+ // Assume WMO if a -primary-file option was not provided.
59
+ bool WholeModule = !Invocation.getFrontendOptions().PrimaryInput.hasValue();
60
TheSILModule = SILModule::createEmptyModule(
- getMainModule(), Invocation.getSILOptions(), isWholeModuleCompilation());
61
+ getMainModule(), Invocation.getSILOptions(), WholeModule);
62
}
63
64
void CompilerInstance::setPrimarySourceFile(SourceFile *SF) {
0 commit comments