forked from OSchip/llvm-project
parent
9f0ac0dd8b
commit
8d53ac81ec
|
@ -1588,6 +1588,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
|
|||
DEBUG(errs() << "IC: Old = " << *I << '\n'
|
||||
<< " New = " << *Result << '\n');
|
||||
|
||||
Result->setDebugLoc(I->getDebugLoc());
|
||||
// Everything uses the new instruction now.
|
||||
I->replaceAllUsesWith(Result);
|
||||
|
||||
|
|
Loading…
Reference in New Issue