[all-commits] [llvm/llvm-project] e5521f: [mlir-tblgen] Fix bug in emitEnumDoc (#118131)

Malte Dehling via All-commits all-commits at lists.llvm.org
Tue Dec 17 11:28:22 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5521fae944c1f3f6905ce5902819a5c9be7f802
      https://github.com/llvm/llvm-project/commit/e5521fae944c1f3f6905ce5902819a5c9be7f802
  Author: Malte Dehling <mdehling at gmail.com>
  Date:   2024-12-17 (Tue, 17 Dec 2024)

  Changed paths:
    M mlir/tools/mlir-tblgen/OpDocGen.cpp

  Log Message:
  -----------
  [mlir-tblgen] Fix bug in emitEnumDoc (#118131)

Fixes a crash (assertion failure) in `mlir-tblgen -emit-enum-doc` caused
by calling `EnumAttr()` for the wrong type of `Record *`: `EnumAttr`
rather than `EnumAttrInfo` as asserted.

Compare the corresponding line in `emitDialectDoc()`:

https://github.com/llvm/llvm-project/blob/0ad6be1927f89cef09aa5d0fb244873f687997c9/mlir/tools/mlir-tblgen/OpDocGen.cpp#L532

Co-authored-by: Malte Dehling <m.dehling at samsung.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list