summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-01 18:51:07 +0000
committerDevang Patel <dpatel@apple.com>2009-07-01 18:51:07 +0000
commitea76e08645a5f57611ae04fa28bc6125782665fd (patch)
tree3629ba602c1b1736dda39f02c20ff6cffd3ca146 /llvm/lib/CodeGen
parent512ff7353e9bc7af72921b7713a5c0bb53a889d6 (diff)
downloadbcm5719-llvm-ea76e08645a5f57611ae04fa28bc6125782665fd.tar.gz
bcm5719-llvm-ea76e08645a5f57611ae04fa28bc6125782665fd.zip
llvm.dbg.declare is always used for local variable's debug info.
llvm-svn: 74625
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 24fccf00eec..45c7ace78bd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -442,10 +442,7 @@ bool FastISel::SelectCall(User *I) {
MachineInstr *DeclareMI
= BuildMI(MBB, DL, II).addFrameIndex(FI).addGlobalAddress(GV);
DIVariable DV(cast<GlobalVariable>(GV));
- if (!DV.isNull()) {
- // This is a local variable
- DW->RecordVariableScope(DV, DeclareMI);
- }
+ DW->RecordVariableScope(DV, DeclareMI);
}
return true;
}
OpenPOWER on IntegriCloud