From 5799b28555aa910130afdf11f5f58d765f82383e Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 6 Apr 2011 17:08:15 +0000 Subject: [PATCH] face+palm Keep track of llvm.dbg.value intrinsics with non null values. llvm-svn: 129010 --- lib/VMCore/DebugInfoProbe.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/VMCore/DebugInfoProbe.cpp b/lib/VMCore/DebugInfoProbe.cpp index 08ec5ba4373..57d17a67d69 100644 --- a/lib/VMCore/DebugInfoProbe.cpp +++ b/lib/VMCore/DebugInfoProbe.cpp @@ -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::iterator I = DbgVariables.begin(),