mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
whoops, don't accidentally lose variable names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c266db54c
commit
d558dc3464
@ -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