mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 22:58:50 +00:00
whoops, don't accidentally lose variable names
llvm-svn: 8955
This commit is contained in:
parent
f507e6e58e
commit
16b7ed1eaa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user