[Mlir-commits] [mlir] [mlir][spirv] Add support for structs decorations (PR #149793)

Krzysztof Drewniak llvmlistbot at llvm.org
Mon Jul 21 08:10:32 PDT 2025


================
@@ -767,17 +769,50 @@ static Type parseStructType(SPIRVDialect const &dialect,
     return Type();
   }
 
-  if (failed(parser.parseRParen()) || failed(parser.parseGreater()))
+  if (failed(parser.parseRParen()))
+    return Type();
+
+  SmallVector<StructType::StructDecorationInfo, 0> structDecorationInfo;
----------------
krzysz00 wrote:

I'm not sure why we're using a 0-length SmallVector here?

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


More information about the Mlir-commits mailing list