[Mlir-commits] [mlir] [mlir][EmitC] Do not convert illegal types in EmitC (PR #104571)

Marius Brehler llvmlistbot at llvm.org
Tue Aug 20 00:05:42 PDT 2024


================
@@ -177,7 +177,8 @@ void mlir::populateMemRefToEmitCTypeConversion(TypeConverter &typeConverter) {
         }
         Type convertedElementType =
             typeConverter.convertType(memRefType.getElementType());
-        if (!convertedElementType)
+        if (!convertedElementType ||
----------------
marbre wrote:

Good suggestion! I agree with Matthias here, please move the check as proposed.

https://github.com/llvm/llvm-project/pull/104571


More information about the Mlir-commits mailing list