diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index 032f22f86fba..5b189492b852 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -494,7 +494,8 @@ IRForTarget::rewritePersistentAllocs(llvm::Module &M, Instruction &inst = *ii; if (AllocaInst *alloc = dyn_cast(&inst)) - if (alloc->getName().startswith("$")) + if (alloc->getName().startswith("$") && + !alloc->getName().startswith("$__lldb")) pvar_allocs.push_back(alloc); }