mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Block terminator may be a switch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2428,7 +2428,7 @@ static bool isUsedByExitBranch(ICmpInst *Cond, Loop *L) {
|
||||
if (!L->isLoopExiting(CondBB))
|
||||
return false;
|
||||
BranchInst *TermBr = dyn_cast<BranchInst>(CondBB->getTerminator());
|
||||
if (!TermBr->isConditional())
|
||||
if (!TermBr || !TermBr->isConditional())
|
||||
return false;
|
||||
|
||||
Value *User = *Cond->use_begin();
|
||||
|
Reference in New Issue
Block a user