forked from OSchip/llvm-project
Fixed IRForTarget to not recognize $__lldb variables
as persistent variables. These are special markers used by LLDB. llvm-svn: 117078
This commit is contained in:
parent
28418de7ee
commit
6608f07a79
|
@ -494,7 +494,8 @@ IRForTarget::rewritePersistentAllocs(llvm::Module &M,
|
||||||
Instruction &inst = *ii;
|
Instruction &inst = *ii;
|
||||||
|
|
||||||
if (AllocaInst *alloc = dyn_cast<AllocaInst>(&inst))
|
if (AllocaInst *alloc = dyn_cast<AllocaInst>(&inst))
|
||||||
if (alloc->getName().startswith("$"))
|
if (alloc->getName().startswith("$") &&
|
||||||
|
!alloc->getName().startswith("$__lldb"))
|
||||||
pvar_allocs.push_back(alloc);
|
pvar_allocs.push_back(alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue