forked from OSchip/llvm-project
Verify that the second parameter of the stacprotector intrinsic is an alloca
instruction. llvm-svn: 59563
This commit is contained in:
parent
6cea453271
commit
d8e312d11f
|
@ -1374,6 +1374,11 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
|||
"invalid arguments to llvm.prefetch",
|
||||
&CI);
|
||||
break;
|
||||
case Intrinsic::stackprotector:
|
||||
Assert1(isa<AllocaInst>(CI.getOperand(2)),
|
||||
"llvm.stackprotector parameter #2 must resolve to an alloca.",
|
||||
&CI);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue