diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-07 22:58:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-07 22:58:41 +0000 |
commit | 950fc785aea1aa08d23a0fad9c35e624e4e49d6a (patch) | |
tree | 34f1877c02ff948b22bbae7be2288ae4a1191db8 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 75b4d1deec06ed09a34195477c3450bb44aa9630 (diff) | |
download | bcm5719-llvm-950fc785aea1aa08d23a0fad9c35e624e4e49d6a.tar.gz bcm5719-llvm-950fc785aea1aa08d23a0fad9c35e624e4e49d6a.zip |
whoops, don't accidentally lose variable names
llvm-svn: 8955
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 8188929cd59..f2f96c0da5f 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -2005,7 +2005,7 @@ bool InstCombiner::runOnFunction(Function &F) { // 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(); |