[clang] [Frontend] Move -mllvm and loading of plugins to address a fixme. NFC (PR #192476)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 09:47:15 PDT 2026
================
@@ -945,19 +946,36 @@ bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input,
// High-Level Operations
void CompilerInstance::PrepareForExecution() {
+ if (PreparedForExecution)
+ return;
+ PreparedForExecution = true;
----------------
vgvassilev wrote:
Because we need to make sure `PreparedForExecution` is called just once. It can be called twice for some tools which rely on clang to bootstrap and then call `ExecuteAction`, iirc.
https://github.com/llvm/llvm-project/pull/192476
More information about the cfe-commits
mailing list