[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 7 17:59:01 PDT 2003


Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.128 -> 1.129

---
Log message:

whoops, don't accidentally lose variable names


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.128 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.129
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.128	Tue Oct  7 17:54:13 2003
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Tue Oct  7 17:58:41 2003
@@ -2005,7 +2005,7 @@
 
         // Move the name to the new instruction first...
         std::string OldName = I->getName(); I->setName("");
-        Result->setName(I->getName());
+        Result->setName(OldName);
 
         // Insert the new instruction into the basic block...
         BasicBlock *InstParent = I->getParent();





More information about the llvm-commits mailing list