summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-15 02:02:30 +0000
committerDevang Patel <dpatel@apple.com>2011-02-15 02:02:30 +0000
commit8d53ac81ecd85b43b7e2a29c48a8efe25869115e (patch)
tree63d6a78fbcc60f2425bd48d0bfffd8c6bfc76027 /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent9f0ac0dd8b4e6b3bed39cd049356bb99adffe529 (diff)
downloadbcm5719-llvm-8d53ac81ecd85b43b7e2a29c48a8efe25869115e.tar.gz
bcm5719-llvm-8d53ac81ecd85b43b7e2a29c48a8efe25869115e.zip
Do not forget DebugLoc!
llvm-svn: 125547
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 7208ad0c7cc..37123d0621e 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1588,6 +1588,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
DEBUG(errs() << "IC: Old = " << *I << '\n'
<< " New = " << *Result << '\n');
+ Result->setDebugLoc(I->getDebugLoc());
// Everything uses the new instruction now.
I->replaceAllUsesWith(Result);
OpenPOWER on IntegriCloud