================ @@ -1698,10 +1698,8 @@ bool Compiler<Emitter>::VisitUnaryExprOrTypeTraitExpr( if (Kind == UETT_VectorElements) { if (const auto *VT = E->getTypeOfArgument()->getAs<VectorType>()) return this->emitConst(VT->getNumElements(), E); - - // FIXME: Apparently we need to catch the fact that a sizeless vector type - // has been passed and diagnose that (at run time). - assert(E->getTypeOfArgument()->isSizelessVectorType()); + if (E->getTypeOfArgument()->isSizelessVectorType()) + return this->emitSizelessVectorElementSize(E); ---------------- yronglin wrote:
Done https://github.com/llvm/llvm-project/pull/99794 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits