face+palm
authorDevang Patel <dpatel@apple.com>
Wed, 6 Apr 2011 17:08:15 +0000 (17:08 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 6 Apr 2011 17:08:15 +0000 (17:08 +0000)
Keep track of llvm.dbg.value intrinsics with non null values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129010 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/DebugInfoProbe.cpp

index 08ec5ba4373d02977b22e88aa60b75e6f89dde99..57d17a67d695595accadc17c7cc48c90c6a22f38 100644 (file)
@@ -99,8 +99,8 @@ void DebugInfoProbeImpl::initialize(StringRef PName, Function &F) {
         Addr = DVI->getValue();
         Node = DVI->getVariable();
       }
-      if (Addr) continue;
-      DbgVariables.insert(Node);
+      if (Addr)
+        DbgVariables.insert(Node);
     }
 }
 
@@ -154,8 +154,8 @@ void DebugInfoProbeImpl::finalize(Function &F) {
         Addr = DVI->getValue();
         Node = DVI->getVariable();
       }
-      if (Addr) continue;
-      DbgVariables2.insert(Node);
+      if (Addr)
+        DbgVariables2.insert(Node);
     }
 
   for (std::set<MDNode *>::iterator I = DbgVariables.begin(),