From d4d1caafc8d12d5df5c98b2aec5acf5c10ea22d1 Mon Sep 17 00:00:00 2001 From: Juneyoung Lee Date: Sun, 2 May 2021 13:44:43 +0900 Subject: [PATCH] Fix MSan crash after 1977c53b --- llvm/lib/Analysis/OverflowInstAnalysis.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/OverflowInstAnalysis.cpp b/llvm/lib/Analysis/OverflowInstAnalysis.cpp index 2456ae9..9f17d5b 100644 --- a/llvm/lib/Analysis/OverflowInstAnalysis.cpp +++ b/llvm/lib/Analysis/OverflowInstAnalysis.cpp @@ -38,7 +38,8 @@ bool llvm::isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd, return false; II = dyn_cast(Extract->getAggregateOperand()); - if (!match(II, m_CombineOr(m_Intrinsic(), + if (!II || + !match(II, m_CombineOr(m_Intrinsic(), m_Intrinsic()))) return false; -- 2.7.4