[all-commits] [llvm/llvm-project] d9e0ca: [mlir][tblgen] Fix crash in `-gen-enum-(decls|defs...
zero9178 via All-commits
all-commits at lists.llvm.org
Fri Oct 7 00:59:47 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9e0cab82ca31dae9847f4c414a154654bfe2af5
https://github.com/llvm/llvm-project/commit/d9e0cab82ca31dae9847f4c414a154654bfe2af5
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2022-10-07 (Fri, 07 Oct 2022)
Changed paths:
A mlir/test/mlir-tblgen/enums-gen-empty.td
M mlir/tools/mlir-tblgen/EnumsGen.cpp
Log Message:
-----------
[mlir][tblgen] Fix crash in `-gen-enum-(decls|defs)` when `EnumAttrInfo` is not defined
This should instead simply produce an empty file instead of crashing and causing a build to fail. This allows one to be more lazy in cmake code and just always generate the files for enum attributes, even if none are ever defined in the dialect.
Differential Revision: https://reviews.llvm.org/D135355
More information about the All-commits
mailing list