mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Do not forget DebugLoc!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da1d660aa2
commit
e7394ea9c6
@ -1588,6 +1588,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
|
|||||||
DEBUG(errs() << "IC: Old = " << *I << '\n'
|
DEBUG(errs() << "IC: Old = " << *I << '\n'
|
||||||
<< " New = " << *Result << '\n');
|
<< " New = " << *Result << '\n');
|
||||||
|
|
||||||
|
Result->setDebugLoc(I->getDebugLoc());
|
||||||
// Everything uses the new instruction now.
|
// Everything uses the new instruction now.
|
||||||
I->replaceAllUsesWith(Result);
|
I->replaceAllUsesWith(Result);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user