diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-15 02:02:30 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-15 02:02:30 +0000 |
commit | e7394ea9c6fac7e1af3a1e4b24fc545d8898110f (patch) | |
tree | 0ccdb2b38fca09ec2e46f68387f4877d5e7e8bfe /lib/Transforms | |
parent | da1d660aa285b724818bdd547f1b538011cc5459 (diff) |
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/Transforms')
-rw-r--r-- | lib/Transforms/InstCombine/InstructionCombining.cpp | 1 |
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); |