It's valid to create a TypedArrayAttr or MixedContainerType with nullptr, e.g., std::vector<mlir::Attribute> attrs = {mlir::StringAttr()}; builder.createArrayAttr(attrs); The predicate didn't check if it's a nullptr and it ends up a crash in the attribute static verifier. We always check if an attribute is null so it's better to align the check for these two container type attr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo