forked from OSchip/llvm-project
[Analysis] ScalarEvolution::getUMinFromMismatchedTypes - assert we've found the max type. NFCI.
Found by clang static analyzer.
This commit is contained in:
parent
df9ae806bb
commit
119a143699
|
@ -3940,6 +3940,7 @@ const SCEV *ScalarEvolution::getUMinFromMismatchedTypes(
|
|||
MaxType = getWiderType(MaxType, S->getType());
|
||||
else
|
||||
MaxType = S->getType();
|
||||
assert(MaxType && "Failed to find maximum type!");
|
||||
|
||||
// Extend all ops to max type.
|
||||
SmallVector<const SCEV *, 2> PromotedOps;
|
||||
|
|
Loading…
Reference in New Issue