[all-commits] [llvm/llvm-project] c35a4f: [mlir][Parser] Fix memory leak when failing to par...

River Riddle via All-commits all-commits at lists.llvm.org
Mon Jul 25 17:30:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c35a4f58045ad39faf40b27b57bf52e9a267c019
      https://github.com/llvm/llvm-project/commit/c35a4f58045ad39faf40b27b57bf52e9a267c019
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

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

  Log Message:
  -----------
  [mlir][Parser] Fix memory leak when failing to parse a forward declared block

This commit fixes a failure edge case where we accidentally drop forward
declared blocks in the error case. This allows for running the
invalid.mlir test in asan mode now.

Fixes #51387

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




More information about the All-commits mailing list