Fixed IRForTarget to not recognize $__lldb variables
as persistent variables. These are special markers
used by LLDB.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117078 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index 032f22f..5b18949 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -494,7 +494,8 @@
Instruction &inst = *ii;
if (AllocaInst *alloc = dyn_cast<AllocaInst>(&inst))
- if (alloc->getName().startswith("$"))
+ if (alloc->getName().startswith("$") &&
+ !alloc->getName().startswith("$__lldb"))
pvar_allocs.push_back(alloc);
}