[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Jun 17 13:04:01 PDT 2004


Changes in directory llvm/lib/VMCore:

Verifier.cpp updated: 1.111 -> 1.112

---
Log message:

Minor cleanup


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.111 llvm/lib/VMCore/Verifier.cpp:1.112
--- llvm/lib/VMCore/Verifier.cpp:1.111	Tue Jun 15 16:52:19 2004
+++ llvm/lib/VMCore/Verifier.cpp	Thu Jun 17 12:56:54 2004
@@ -660,7 +660,7 @@
             "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;





More information about the llvm-commits mailing list