[llvm-commits] [llvm] r125547 - /llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Devang Patel dpatel at apple.com
Mon Feb 14 18:02:30 PST 2011


Author: dpatel
Date: Mon Feb 14 20:02:30 2011
New Revision: 125547

URL: http://llvm.org/viewvc/llvm-project?rev=125547&view=rev
Log:
Do not forget DebugLoc!

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp?rev=125547&r1=125546&r2=125547&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp Mon Feb 14 20:02:30 2011
@@ -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);
 





More information about the llvm-commits mailing list