diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-07 21:50:24 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-07 21:50:24 +0000 |
commit | a9b7738d13f412d356ca8d2fd136be53f2c49a8a (patch) | |
tree | 9ba5ec6d8bf540e166da871347c77b338e1729e2 | |
parent | 29ef6599ee7b1f72af6d96d96300b47c94a57390 (diff) | |
download | external_llvm-a9b7738d13f412d356ca8d2fd136be53f2c49a8a.zip external_llvm-a9b7738d13f412d356ca8d2fd136be53f2c49a8a.tar.gz external_llvm-a9b7738d13f412d356ca8d2fd136be53f2c49a8a.tar.bz2 |
Express this in the canonical way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81157 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index ac009bb..b8a2405 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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); |