summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-07 22:58:41 +0000
committerChris Lattner <sabre@nondot.org>2003-10-07 22:58:41 +0000
commitd558dc346470cba589aaf966ef7ad4a8b6e837cd (patch)
treeee8af1d2f95a84010faa34ce670135ed8ce89120 /lib/Transforms
parent6c266db54cb2a3ddcce49ce8cc8c334292d58a3a (diff)
downloadllvm-d558dc346470cba589aaf966ef7ad4a8b6e837cd.tar.gz
llvm-d558dc346470cba589aaf966ef7ad4a8b6e837cd.tar.bz2
llvm-d558dc346470cba589aaf966ef7ad4a8b6e837cd.tar.xz
whoops, don't accidentally lose variable names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 8188929cd5..f2f96c0da5 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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();