commit | e7394ea9c6fac7e1af3a1e4b24fc545d8898110f | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Feb 15 02:02:30 2011 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Feb 15 02:02:30 2011 +0000 |
tree | 0ccdb2b38fca09ec2e46f68387f4877d5e7e8bfe | |
parent | da1d660aa285b724818bdd547f1b538011cc5459 [diff] [blame] |
Do not forget DebugLoc! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125547 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp index 7208ad0..37123d0 100644 --- a/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1588,6 +1588,7 @@ DEBUG(errs() << "IC: Old = " << *I << '\n' << " New = " << *Result << '\n'); + Result->setDebugLoc(I->getDebugLoc()); // Everything uses the new instruction now. I->replaceAllUsesWith(Result);