[Lldb-commits] [lldb] r117078 - /lldb/trunk/source/Expression/IRForTarget.cpp

Sean Callanan scallanan at apple.com
Thu Oct 21 15:41:33 PDT 2010


Author: spyffe
Date: Thu Oct 21 17:41:32 2010
New Revision: 117078

URL: http://llvm.org/viewvc/llvm-project?rev=117078&view=rev
Log:
Fixed IRForTarget to not recognize $__lldb variables
as persistent variables.  These are special markers
used by LLDB.

Modified:
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=117078&r1=117077&r2=117078&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Thu Oct 21 17:41:32 2010
@@ -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);
     }
     





More information about the lldb-commits mailing list