[all-commits] [llvm/llvm-project] 42f87a: [mlir][ods] NFC Fix ASAN error in FormatParser

Jeff Niu via All-commits all-commits at lists.llvm.org
Tue Feb 1 20:31:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42f87a0354562b6bfb3a35480677ff07c377d482
      https://github.com/llvm/llvm-project/commit/42f87a0354562b6bfb3a35480677ff07c377d482
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M mlir/tools/mlir-tblgen/FormatGen.cpp
    M mlir/tools/mlir-tblgen/FormatGen.h

  Log Message:
  -----------
  [mlir][ods] NFC Fix ASAN error in FormatParser

Some FormatElement subclasses contain `std::vector`. Since these use
BumpPtrAllocator, they need to be converted to trailing objects.
However, this is not a trivial fix so I will leave it as a FIXME and use
a workaround.




More information about the All-commits mailing list