diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-18 22:43:42 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-18 22:43:42 +0000 |
commit | a778f5c798fc78ca15f813c362cdcdcc1eb86266 (patch) | |
tree | 6985fb1ab8c5de26f937356d0be0ab4011b8548e /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 0160c8a8bc1c1f3c3a65a44cb614bf03ef82a967 (diff) | |
download | external_llvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.zip external_llvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.tar.gz external_llvm-a778f5c798fc78ca15f813c362cdcdcc1eb86266.tar.bz2 |
Do not lose debug info of an inlined function argument even if the argument is only used through GEPs.
This time with a fix that avoids using invalidated DenseMap iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index fc283a3..452f561 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -4287,7 +4287,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { N.getResNo(), Offset, dl, SDNodeOrder); DAG.AddDbgValue(SDV, N.getNode(), false); } - } else if (isa<PHINode>(V) && !V->use_empty() ) { + } else if (!V->use_empty() ) { // Do not call getValue(V) yet, as we don't want to generate code. // Remember it for later. DanglingDebugInfo DDI(&DI, dl, SDNodeOrder); |