You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/llvm-project/llvm/include/llvm/Support/Casting.h:269: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::FixedVectorType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::FixedVectorType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
, which is probably called from
Constant*ConstantExpr::getPtrToInt(Constant*C, Type*DstTy,
boolOnlyIfReduced) {
assert(C->getType()->isPtrOrPtrVectorTy() &&"PtrToInt source must be pointer or pointer vector");
assert(DstTy->isIntOrIntVectorTy() &&"PtrToInt destination must be integer or integer vector");
assert(isa<VectorType>(C->getType()) ==isa<VectorType>(DstTy));
if (isa<VectorType>(C->getType()))
assert(cast<FixedVectorType>(C->getType())->getNumElements() ==cast<FixedVectorType>(DstTy)->getNumElements() &&"Invalid cast between a different number of vector elements");
returngetFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced);
}
Pseudo code for this case is as follows. This happens with scalable vector and not with fixed sized vector.
/llvm-project/llvm/include/llvm/Support/Casting.h:269: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::FixedVectorType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::FixedVectorType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
, which is probably called from
Pseudo code for this case is as follows. This happens with scalable vector and not with fixed sized vector.
The text was updated successfully, but these errors were encountered: