mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
This cast<Instruction> is unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74fd536158
commit
2444080ca4
@ -190,7 +190,7 @@ ICmpInst *IndVarSimplify::LinearFunctionTestReplace(Loop *L,
|
||||
|
||||
ICmpInst *Cond = new ICmpInst(BI, Opcode, CmpIndVar, ExitCnt, "exitcond");
|
||||
|
||||
Instruction *OrigCond = cast<Instruction>(BI->getCondition());
|
||||
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
|
||||
// comparison may not be dominated by the new comparison. Instead, just
|
||||
|
Loading…
x
Reference in New Issue
Block a user