commit | 8d53ac81ecd85b43b7e2a29c48a8efe25869115e | [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 | 63d6a78fbcc60f2425bd48d0bfffd8c6bfc76027 | |
parent | 9f0ac0dd8b4e6b3bed39cd049356bb99adffe529 [diff] |
Do not forget DebugLoc! llvm-svn: 125547
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 7208ad0..37123d0 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/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);