[Analysis] ScalarEvolution::getUMinFromMismatchedTypes - assert we've found the max type. NFCI.

Found by clang static analyzer.
This commit is contained in:
Simon Pilgrim 2020-10-08 18:41:55 +01:00
parent df9ae806bb
commit 119a143699
1 changed files with 1 additions and 0 deletions

View File

@ -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;