From: Bill Wendling Date: Wed, 19 Nov 2008 09:17:16 +0000 (+0000) Subject: Use stripPointerCasts when checking for AllocaInsts for the stackprotector intrinsic. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2f45f9762da4ac6e823e83bff36806be1b099ea2;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 21646840e4c..ffafc77c828 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1375,7 +1375,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) { &CI); break; case Intrinsic::stackprotector: - Assert1(isa(CI.getOperand(2)), + Assert1(isa(CI.getOperand(2)->stripPointerCasts()), "llvm.stackprotector parameter #2 must resolve to an alloca.", &CI); break;