From 16b7ed1eaa793f66aea5b703fd10b50bac7a3b9c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Oct 2003 22:58:41 +0000 Subject: [PATCH] whoops, don't accidentally lose variable names llvm-svn: 8955 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 8188929cd59..f2f96c0da5f 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();