forked from OSchip/llvm-project
parent
3fc89804a6
commit
d7fb16d895
|
@ -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