mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Use stripPointerCasts when checking for AllocaInsts for the stackprotector intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
021f3f252e
commit
2f45f9762d
@ -1375,7 +1375,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
|||||||
&CI);
|
&CI);
|
||||||
break;
|
break;
|
||||||
case Intrinsic::stackprotector:
|
case Intrinsic::stackprotector:
|
||||||
Assert1(isa<AllocaInst>(CI.getOperand(2)),
|
Assert1(isa<AllocaInst>(CI.getOperand(2)->stripPointerCasts()),
|
||||||
"llvm.stackprotector parameter #2 must resolve to an alloca.",
|
"llvm.stackprotector parameter #2 must resolve to an alloca.",
|
||||||
&CI);
|
&CI);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user