summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-04-22 18:16:49 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-04-22 18:16:49 +0000
commitd2db881e8552ec3e5a1b20f91e8d07d6424d6855 (patch)
tree58adcc7630cf4f69e534702e06a532f15d32e227 /llvm/lib/IR/Verifier.cpp
parent037b700b7f0caecabc745217fd421c8bca06f6eb (diff)
downloadbcm5719-llvm-d2db881e8552ec3e5a1b20f91e8d07d6424d6855.tar.gz
bcm5719-llvm-d2db881e8552ec3e5a1b20f91e8d07d6424d6855.zip
Revert "[opaque pointer type] Avoid using PointerType::getElementType for a few cases of CallInst"
This reverts commit r235458. It looks like this might be breaking something LTO-ish. Looking into it & will recommit with a fix/test case/etc once I've got more to go on. llvm-svn: 235533
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 7001c556d20..e14f1036912 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2120,11 +2120,7 @@ void Verifier::VerifyCallSite(CallSite CS) {
Assert(FPTy->getElementType()->isFunctionTy(),
"Called function is not pointer to function type!", I);
-
- Assert(FPTy->getElementType() == CS.getFunctionType(),
- "Called function is not the same type as the call!", I);
-
- FunctionType *FTy = CS.getFunctionType();
+ FunctionType *FTy = cast<FunctionType>(FPTy->getElementType());
// Verify that the correct number of arguments are being passed
if (FTy->isVarArg())
OpenPOWER on IntegriCloud