mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
fix failures introduced in r85774
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc4f60b113
commit
301a2792be
@ -451,7 +451,8 @@ void SCCPSolver::getFeasibleSuccessors(TerminatorInst &TI,
|
||||
}
|
||||
|
||||
// Constant condition variables mean the branch can only go a single way.
|
||||
Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true;
|
||||
if (BCValue.isConstant())
|
||||
Succs[cast<ConstantInt>(BCValue.getConstant())->isZero()] = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user