Express this in the canonical way.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 7 Sep 2009 21:50:24 +0000 (21:50 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 7 Sep 2009 21:50:24 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81157 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index ac009bb4f1a4395f53cb2c152fde0974cbd3c8d6..b8a2405be64a9feede298042be6e2b0627fb84f0 100644 (file)
@@ -866,8 +866,8 @@ void Verifier::visitSIToFPInst(SIToFPInst &I) {
   const Type *SrcTy = I.getOperand(0)->getType();
   const Type *DestTy = I.getType();
 
-  bool SrcVec = SrcTy->getTypeID() == Type::VectorTyID;
-  bool DstVec = DestTy->getTypeID() == Type::VectorTyID;
+  bool SrcVec = isa<VectorType>(SrcTy);
+  bool DstVec = isa<VectorType>(DestTy);
 
   Assert1(SrcVec == DstVec,
           "SIToFP source and dest must both be vector or scalar", &I);