diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index affbc9a6ba4..3ca9d8c8210 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1361,6 +1361,14 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) { "llvm.init_trampoline parameter #2 must resolve to a function.", &CI); break; + case Intrinsic::prefetch: + Assert1(isa(CI.getOperand(2)) && + isa(CI.getOperand(3)) && + cast(CI.getOperand(2))->getZExtValue() < 2 && + cast(CI.getOperand(3))->getZExtValue() < 4, + "invalid arguments to llvm.prefetch", + &CI); + break; } }