diff options
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
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(); |