================ @@ -2016,8 +2016,9 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const { case Type::Vector: { const auto *VT = cast<VectorType>(T); TypeInfo EltInfo = getTypeInfo(VT->getElementType()); - Width = VT->isExtVectorBoolType() ? VT->getNumElements() - : EltInfo.Width * VT->getNumElements(); + Width = (VT->isExtVectorBoolType() && !getLangOpts().HLSL) + ? VT->getNumElements() + : EltInfo.Width * VT->getNumElements(); ---------------- inbelic wrote:
IIUC, we rely on `EltInfo.Width` being 32 bits here right? If so, why is that always the case? https://github.com/llvm/llvm-project/pull/123977 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits