summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-19 09:17:16 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-19 09:17:16 +0000
commitfd2c607026c9b70f9e5afe58fde7e5771ce5e53f (patch)
tree7ff418cc366f7f9a2052b8d208754980a3a033bf /llvm/lib
parentf99d54498a1237fd75788cd0a65e826b1b68174b (diff)
downloadbcm5719-llvm-fd2c607026c9b70f9e5afe58fde7e5771ce5e53f.tar.gz
bcm5719-llvm-fd2c607026c9b70f9e5afe58fde7e5771ce5e53f.zip
Use stripPointerCasts when checking for AllocaInsts for the stackprotector intrinsic.
llvm-svn: 59614
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 21646840e4c..ffafc77c828 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -1375,7 +1375,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
&CI);
break;
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.",
&CI);
break;
OpenPOWER on IntegriCloud