We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a216c commit 01ee70bCopy full SHA for 01ee70b
clang/lib/CodeGen/CodeGenTypes.cpp
@@ -512,6 +512,9 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
512
{
513
ASTContext::BuiltinVectorTypeInfo Info =
514
Context.getBuiltinVectorTypeInfo(cast<BuiltinType>(Ty));
515
+ // The `__mfp8` type maps to `<1 x i8>` which can't be used to build
516
+ // a <N x i8> vector type, hence bypass the call to `ConvertType` for
517
+ // the element type and create the vector type directly.
518
auto *EltTy = Info.ElementType->isMFloat8Type()
519
? llvm::Type::getInt8Ty(getLLVMContext())
520
: ConvertType(Info.ElementType);
0 commit comments