[all-commits] [llvm/llvm-project] 4e44bd: [mlir][Parser] Fix crash after block parsing failu...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Feb 22 03:58:01 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e44bd027bf4e490380be770172994561616bd2d
      https://github.com/llvm/llvm-project/commit/4e44bd027bf4e490380be770172994561616bd2d
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-02-22 (Sat, 22 Feb 2025)

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

  Log Message:
  -----------
  [mlir][Parser] Fix crash after block parsing failure (#128011)

Fix a crash when parsing malformed block that defines values that
preceding operations refer to (which would be a dominance error).

Previously: Producer multiple error messages and then crashes as
follows:
```
LLVM ERROR: operation destroyed but still has uses
```

Now: Report an error that the block is malformed. No crash.



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