File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ static void lockOutputSwiftModuleTraps(const codeql::SwiftExtractorConfiguration
30
30
}
31
31
}
32
32
33
- static void modifyFrontendOptions (swift::FrontendOptions& options) {
33
+ static void processFrontendOptions (swift::FrontendOptions& options) {
34
34
using Action = swift::FrontendOptions::ActionType;
35
35
switch (options.RequestedAction ) {
36
36
case Action::EmitModuleOnly:
@@ -58,9 +58,9 @@ static void modifyFrontendOptions(swift::FrontendOptions& options) {
58
58
// version printing is used by CI to match up the correct compiler version
59
59
return ;
60
60
default :
61
- // otherwise, do nothing (the closest action to doing nothing is printing the version)
62
- options. RequestedAction = Action::PrintVersion ;
63
- break ;
61
+ // otherwise, we have nothing to do
62
+ std::cerr << " Frontend action requires no action from extractor, exiting \n " ;
63
+ std::exit ( 0 ) ;
64
64
}
65
65
}
66
66
@@ -74,7 +74,7 @@ class Observer : public swift::FrontendObserver {
74
74
: config{config}, diagConsumer{diagConsumer} {}
75
75
76
76
void parsedArgs (swift::CompilerInvocation& invocation) override {
77
- modifyFrontendOptions (invocation.getFrontendOptions ());
77
+ processFrontendOptions (invocation.getFrontendOptions ());
78
78
}
79
79
80
80
void configuredCompiler (swift::CompilerInstance& instance) override {
You can’t perform that action at this time.
0 commit comments