mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
Express this in the canonical way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29ef6599ee
commit
a9b7738d13
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user