summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-05-04 01:05:02 +0000
committerDevang Patel <dpatel@apple.com>2010-05-04 01:05:02 +0000
commit01c5ff6437ee2e92cae4d25f351c93194e531181 (patch)
tree62c3330e06e31806d8fa98cd2a68748b6030a60a /lib/Analysis/DebugInfo.cpp
parentf1ced259b5617e9c15fcafd47e090c22e2702062 (diff)
downloadexternal_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.zip
external_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.tar.gz
external_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.tar.bz2
Do not ignore debug loc attached with llvm.dbg.declare while collecting debug info used by a module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 8d5a3c7..141b181 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -1171,10 +1171,8 @@ void DebugInfoFinder::processModule(Module &M) {
for (Function::iterator FI = (*I).begin(), FE = (*I).end(); FI != FE; ++FI)
for (BasicBlock::iterator BI = (*FI).begin(), BE = (*FI).end(); BI != BE;
++BI) {
- if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI)) {
+ if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI))
processDeclare(DDI);
- continue;
- }
DebugLoc Loc = BI->getDebugLoc();
if (Loc.isUnknown())