Minor cleanup
authorChris Lattner <sabre@nondot.org>
Thu, 17 Jun 2004 17:56:54 +0000 (17:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Jun 2004 17:56:54 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14199 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 40387d3015381b83235229e15ce2e79e2426b37b..51c933be93a136dca7d48d47b80072fe7124a029 100644 (file)
@@ -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;