We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 462133e commit 8bcdfb2Copy full SHA for 8bcdfb2
swift/extractor/main.cpp
@@ -40,7 +40,9 @@ int main(int argc, char** argv) {
40
if ("-frontend"s != argv[1]) {
41
return 0;
42
}
43
+ // Required by Swift/LLVM
44
PROGRAM_START(argc, argv);
45
+ INITIALIZE_LLVM();
46
47
codeql::Configuration configuration{};
48
configuration.trapDir = getenv_or("CODEQL_EXTRACTOR_SWIFT_TRAP_DIR", ".");
@@ -55,6 +57,5 @@ int main(int argc, char** argv) {
55
57
std::copy(std::begin(args), std::end(args), std::back_inserter(configuration.frontendOptions));
56
58
Observer observer(configuration);
59
int frontend_rc = swift::performFrontend(args, "swift-extractor", (void*)main, &observer);
- llvm::llvm_shutdown();
60
return frontend_rc;
61
0 commit comments