diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-27 00:19:40 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-27 00:19:40 +0000 |
commit | 35211c6091aeb76d50b5efca65cfce1e153030e6 (patch) | |
tree | a07ebf9c71994d56b3d511e5b273411661681500 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 07f5b65e637eb8e77ff6310d64f39e668ba967cb (diff) | |
download | bcm5719-llvm-35211c6091aeb76d50b5efca65cfce1e153030e6.tar.gz bcm5719-llvm-35211c6091aeb76d50b5efca65cfce1e153030e6.zip |
Final step of instcombine debuginfo; switch a couple more places over to InsertNewInstWith, and use setDebugLoc for the cases which can't be easily handled by the automated mechanisms.
llvm-svn: 132167
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 243937705ac..ef67701921f 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1130,6 +1130,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { Instruction::CastOps opcode = CastInst::getCastOpcode(NC, false, OldRetTy, false); NV = NC = CastInst::Create(opcode, NC, OldRetTy, "tmp"); + NC->setDebugLoc(Caller->getDebugLoc()); // If this is an invoke instruction, we should insert it after the first // non-phi, instruction in the normal successor block. |