aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-17 17:56:54 +0000
committerChris Lattner <sabre@nondot.org>2004-06-17 17:56:54 +0000
commitc2616625a3f36c87e8ee8b3b559267456907922c (patch)
tree269be82050703c8110ca9e7cd64e891eb8484e7d
parent060307971998f6a2a298ef1cdb4aa0ecd1969f74 (diff)
Minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14199 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 40387d3015..51c933be93 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -660,7 +660,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
"Illegal # arguments for intrinsic function!", IF);
Assert1(FT->getParamType(0)->isFirstClassType(),
"First argument not a first class type!", IF);
- Assert1(FT->getParamType(1)->getPrimitiveID() == Type::PointerTyID,
+ Assert1(isa<PointerType>(FT->getParamType(1)),
"Second argument not a pointer!", IF);
NumArgs = 2;
break;