[Mlir-commits] [mlir] [mlir][async] Avoid crash when not using `func.func` (PR #72801)

Rik Huijzer llvmlistbot at llvm.org
Mon Nov 20 10:55:48 PST 2023


================
@@ -1143,6 +1143,8 @@ void OpEmitter::genAttrNameGetters() {
       const char *const getAttrName = R"(
   assert(index < {0} && "invalid attribute index");
   assert(name.getStringRef() == getOperationName() && "invalid operation name");
+  assert(!name.getAttributeNames().empty() && "empty attribute names. Is a new "
----------------
rikhuijzer wrote:

Since fixing this would require a separate PR anyway, I've opened an issue for this: https://github.com/llvm/llvm-project/issues/72900.

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


More information about the Mlir-commits mailing list