summaryrefslogtreecommitdiff
path: root/lib
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
commite7394ea9c6fac7e1af3a1e4b24fc545d8898110f (patch)
tree0ccdb2b38fca09ec2e46f68387f4877d5e7e8bfe /lib
parentda1d660aa285b724818bdd547f1b538011cc5459 (diff)
downloadllvm-e7394ea9c6fac7e1af3a1e4b24fc545d8898110f.tar.gz
llvm-e7394ea9c6fac7e1af3a1e4b24fc545d8898110f.tar.bz2
llvm-e7394ea9c6fac7e1af3a1e4b24fc545d8898110f.tar.xz
Do not forget DebugLoc!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/InstCombine/InstructionCombining.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp
index 7208ad0c7c..37123d0621 100644
--- a/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/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);