diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-06 17:08:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-06 17:08:15 +0000 |
commit | f3480a80153da1029ae56ccb6c1b1936afa71870 (patch) | |
tree | 57011ca22d3fd9d4ed25a15b77e501fecbc33093 /lib/VMCore/DebugInfoProbe.cpp | |
parent | f5a90561b033428bd2c5b365ca09ed9e688dce6e (diff) | |
download | external_llvm-f3480a80153da1029ae56ccb6c1b1936afa71870.zip external_llvm-f3480a80153da1029ae56ccb6c1b1936afa71870.tar.gz external_llvm-f3480a80153da1029ae56ccb6c1b1936afa71870.tar.bz2 |
face+palm
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
Diffstat (limited to 'lib/VMCore/DebugInfoProbe.cpp')
-rw-r--r-- | lib/VMCore/DebugInfoProbe.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/DebugInfoProbe.cpp b/lib/VMCore/DebugInfoProbe.cpp index 08ec5ba..57d17a6 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<MDNode *>::iterator I = DbgVariables.begin(), |