diff options
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index ae578c91ae8..3c6defdfde3 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -4475,15 +4475,17 @@ void Verifier::visitIntrinsicCallSite(Intrinsic::ID ID, CallSite CS) { break; } case Intrinsic::sadd_sat: - case Intrinsic::uadd_sat: { + case Intrinsic::uadd_sat: + case Intrinsic::ssub_sat: + case Intrinsic::usub_sat: { Value *Op1 = CS.getArgOperand(0); Value *Op2 = CS.getArgOperand(1); - Assert( - Op1->getType()->isIntOrIntVectorTy(), - "first operand of [us]add_sat must be an int type or vector of ints"); - Assert( - Op2->getType()->isIntOrIntVectorTy(), - "second operand of [us]add_sat must be an int type or vector of ints"); + Assert(Op1->getType()->isIntOrIntVectorTy(), + "first operand of [us][add|sub]_sat must be an int type or vector " + "of ints"); + Assert(Op2->getType()->isIntOrIntVectorTy(), + "second operand of [us][add|sub]_sat must be an int type or vector " + "of ints"); break; } }; |