1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Fix MSan crash after 1977c53b

This commit is contained in:
Juneyoung Lee 2021-05-02 13:44:43 +09:00
parent 0086e8ade4
commit 33fda542f4

View File

@ -38,7 +38,8 @@ bool llvm::isCheckForZeroAndMulWithOverflow(Value *Op0, Value *Op1, bool IsAnd,
return false;
II = dyn_cast<IntrinsicInst>(Extract->getAggregateOperand());
if (!match(II, m_CombineOr(m_Intrinsic<Intrinsic::umul_with_overflow>(),
if (!II ||
!match(II, m_CombineOr(m_Intrinsic<Intrinsic::umul_with_overflow>(),
m_Intrinsic<Intrinsic::smul_with_overflow>())))
return false;