[all-commits] [llvm/llvm-project] aea31f: [MLIR] Fix block label parsing bug

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Sat Mar 12 07:03:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aea31f62d44adf9d6e51d2ee323692b6efadcede
      https://github.com/llvm/llvm-project/commit/aea31f62d44adf9d6e51d2ee323692b6efadcede
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2022-03-12 (Sat, 12 Mar 2022)

  Changed paths:
    M mlir/lib/Parser/Parser.cpp
    M mlir/test/IR/invalid.mlir
    M mlir/test/IR/parser.mlir

  Log Message:
  -----------
  [MLIR] Fix block label parsing bug

Fix bug in `Block` label parsing:
https://github.com/llvm/llvm-project/issues/54343

The `parseOptionalBlockArgList` method was doing the wrong thing
(contrary to its doc comment) and its calling context was also
incorrect. This led to a parse failure for something like "^bb0()".

Fixes #54343

Differential Revision: https://reviews.llvm.org/D121503




More information about the All-commits mailing list