mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 00:10:37 +00:00
Fix Clang -Wcovered-switch-default warning by moving llvm_unreachable default to after the switch
This commit is contained in:
parent
7b7501b312
commit
2b53a6e5ce
@ -6607,10 +6607,8 @@ const SCEV *ScalarEvolution::getExitCount(const Loop *L,
|
||||
return getBackedgeTakenInfo(L).getExact(ExitingBlock, this);
|
||||
case ConstantMaximum:
|
||||
return getCouldNotCompute();
|
||||
default:
|
||||
llvm_unreachable("Impossible case!");
|
||||
};
|
||||
|
||||
llvm_unreachable("Invalid ExitCountKind!");
|
||||
}
|
||||
|
||||
const SCEV *
|
||||
@ -6626,9 +6624,8 @@ const SCEV *ScalarEvolution::getBackedgeTakenCount(const Loop *L,
|
||||
return getBackedgeTakenInfo(L).getExact(L, this);
|
||||
case ConstantMaximum:
|
||||
return getBackedgeTakenInfo(L).getMax(this);
|
||||
default:
|
||||
llvm_unreachable("Impossible case!");
|
||||
};
|
||||
llvm_unreachable("Invalid ExitCountKind!");
|
||||
}
|
||||
|
||||
bool ScalarEvolution::isBackedgeTakenCountMaxOrZero(const Loop *L) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user