[llvm] 119a143 - [Analysis] ScalarEvolution::getUMinFromMismatchedTypes - assert we've found the max type. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 11:13:01 PDT 2020
Author: Simon Pilgrim
Date: 2020-10-08T19:04:29+01:00
New Revision: 119a143699d03a27686ca4377afb0b60e0985031
URL: https://github.com/llvm/llvm-project/commit/119a143699d03a27686ca4377afb0b60e0985031
DIFF: https://github.com/llvm/llvm-project/commit/119a143699d03a27686ca4377afb0b60e0985031.diff
LOG: [Analysis] ScalarEvolution::getUMinFromMismatchedTypes - assert we've found the max type. NFCI.
Found by clang static analyzer.
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 79a18da679d2..f569db9f6152 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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;
More information about the llvm-commits
mailing list