projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c266db
)
whoops, don't accidentally lose variable names
author
Chris Lattner
<sabre@nondot.org>
Tue, 7 Oct 2003 22:58:41 +0000
(22:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 7 Oct 2003 22:58:41 +0000
(22:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8955
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 8188929cd592f20352e3a32f21a14ab3740d13a3..f2f96c0da5f3269948e68b43c46acdfd458a7336 100644
(file)
--- 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();