mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Preserve debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -339,7 +339,7 @@ LinearFunctionTestReplace(Loop *L,
|
||||
<< " RHS:\t" << *RHS << "\n");
|
||||
|
||||
ICmpInst *Cond = new ICmpInst(BI, Opcode, CmpIndVar, ExitCnt, "exitcond");
|
||||
|
||||
Cond->setDebugLoc(BI->getDebugLoc());
|
||||
Value *OrigCond = BI->getCondition();
|
||||
// It's tempting to use replaceAllUsesWith here to fully replace the old
|
||||
// comparison, but that's not immediately safe, since users of the old
|
||||
|
Reference in New Issue
Block a user