Skip to content

Commit 5a045be

Browse files
committed
Swift: turn off SIL verifications
1 parent ce4273d commit 5a045be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swift/extractor/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ static void processFrontendOptions(codeql::SwiftExtractorState& state,
7676
}
7777
}
7878

79+
static void turnOffSilVerifications(swift::SILOptions& options) {
80+
options.VerifyAll = false;
81+
options.VerifyExclusivity = false;
82+
options.VerifyNone = true;
83+
options.VerifySILOwnership = false;
84+
}
85+
7986
codeql::TrapDomain invocationTrapDomain(codeql::SwiftExtractorState& state);
8087

8188
// This is part of the swiftFrontendTool interface, we hook into the
@@ -90,6 +97,7 @@ class Observer : public swift::FrontendObserver {
9097
options.KeepASTContext = true;
9198
lockOutputSwiftModuleTraps(state, options);
9299
processFrontendOptions(state, options);
100+
turnOffSilVerifications(invocation.getSILOptions());
93101
}
94102

95103
void configuredCompiler(swift::CompilerInstance& instance) override {

0 commit comments

Comments
 (0)