[Mlir-commits] [mlir] [mlir][EmitC] Disallow string attributes as initial values (PR #75310)

Gil Rapaport llvmlistbot at llvm.org
Sun Dec 17 04:20:35 PST 2023


================
@@ -50,6 +50,26 @@ void mlir::emitc::buildTerminatedBody(OpBuilder &builder, Location loc) {
   builder.create<emitc::YieldOp>(loc);
 }
 
+/// Check that the type of the initial value is compatible with the operations
+/// result type.
+LogicalResult verifyInitializationAttribute(Operation *op, Attribute value,
----------------
aniragil wrote:

```suggestion
static LogicalResult verifyInitializationAttribute(Operation *op, Attribute value,
```

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


More information about the Mlir-commits mailing list