Skip to content

Commit db0d747

Browse files
committed
[lldb] Rework PCM validation disable for Swift (#10974)
The `Preprocessor`'s options have changed to be `const` in llvm@277ab85. Since lldb can no longer mutate the options before constructing a clang importer, this change is to setup the options ahead of time. (cherry picked from commit de06c52) (cherry-picked from commit 30f191f9e843501231cf64c58ae4e47bd6d97a3f)
1 parent 7db34a8 commit db0d747

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,10 +1818,10 @@ void SwiftASTContext::ConfigureModuleValidation(
18181818
#endif
18191819
}
18201820

1821-
if (!validate_pcm)
1821+
if (!validate_pcm) {
18221822
extra_args.push_back("-fno-modules-check-relocated");
1823-
LOG_PRINTF(GetLog(LLDBLog::Types), "PCM validation is %s",
1824-
validate_pcm ? "disabled" : "enabled");
1823+
LOG_PRINTF(GetLog(LLDBLog::Types), "PCM validation is disabled");
1824+
}
18251825
}
18261826

18271827
void SwiftASTContext::AddExtraClangArgs(

0 commit comments

Comments
 (0)