File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,12 @@ static void processFrontendOptions(codeql::SwiftExtractorState& state,
7676 }
7777}
7878
79- static void turnOffSilVerifications (swift::SILOptions& options) {
79+ static void turnOffSilVerificationsAndStackProtection (swift::SILOptions& options) {
8080 options.VerifyAll = false ;
8181 options.VerifyExclusivity = false ;
8282 options.VerifyNone = true ;
8383 options.VerifySILOwnership = false ;
84+ options.EnableStackProtection = false ; // Causes crashes on Linux
8485}
8586
8687codeql::TrapDomain invocationTrapDomain (codeql::SwiftExtractorState& state);
@@ -98,7 +99,7 @@ class Observer : public swift::FrontendObserver {
9899 options.KeepASTContext = true ;
99100 lockOutputSwiftModuleTraps (state, options);
100101 processFrontendOptions (state, options);
101- turnOffSilVerifications (invocation.getSILOptions ());
102+ turnOffSilVerificationsAndStackProtection (invocation.getSILOptions ());
102103 }
103104
104105 void configuredCompiler (swift::CompilerInstance& instance) override {
You can’t perform that action at this time.
0 commit comments