From 896e6cd57603b2078cc6fda73d65efea4d234fb1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 19 Nov 2008 09:17:16 +0000 Subject: [PATCH] Use stripPointerCasts when checking for AllocaInsts for the stackprotector intrinsic. llvm-svn: 59614 --- lib/VMCore/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;