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 a0b1c0b commit 4c65e14Copy full SHA for 4c65e14
lib/Migrator/Migrator.cpp
@@ -21,6 +21,7 @@
21
#include "clang/Basic/SourceManager.h"
22
#include "clang/Edit/EditedSource.h"
23
#include "clang/Rewrite/Core/RewriteBuffer.h"
24
+#include "llvm/Support/CommandLine.h"
25
#include "llvm/Support/FileSystem.h"
26
27
using namespace swift;
@@ -148,6 +149,9 @@ Migrator::performAFixItMigration(version::Version SwiftLanguageVersion) {
148
149
}
150
151
auto Instance = std::make_unique<swift::CompilerInstance>();
152
+ // rdar://78576743 - Reset LLVM global state for command-line arguments set
153
+ // by prior calls to setup.
154
+ llvm::cl::ResetAllOptionOccurrences();
155
if (Instance->setup(Invocation)) {
156
return nullptr;
157
0 commit comments