diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-11-19 09:17:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-11-19 09:17:16 +0000 |
commit | 2f45f9762da4ac6e823e83bff36806be1b099ea2 (patch) | |
tree | 0e455c9b6565a92132090a421f4659f37e199d17 /lib/VMCore/Verifier.cpp | |
parent | 021f3f252ead1660538e1f4238151722a149d4d2 (diff) | |
download | external_llvm-2f45f9762da4ac6e823e83bff36806be1b099ea2.zip external_llvm-2f45f9762da4ac6e823e83bff36806be1b099ea2.tar.gz external_llvm-2f45f9762da4ac6e823e83bff36806be1b099ea2.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 2164684..ffafc77 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<AllocaInst>(CI.getOperand(2)), + Assert1(isa<AllocaInst>(CI.getOperand(2)->stripPointerCasts()), "llvm.stackprotector parameter #2 must resolve to an alloca.", &CI); break; |