[all-commits] [llvm/llvm-project] 012b14: [mlir] Fix crash when adding nested dialect extens...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Aug 26 01:15:45 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 012b148dd9402c6ad58805701863d31fb506caff
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-08-26 (Sat, 26 Aug 2023)

  Changed paths:
    M mlir/lib/IR/Dialect.cpp
    M mlir/unittests/IR/DialectTest.cpp

  Log Message:
  [mlir] Fix crash when adding nested dialect extensions

A dialect extension can add additional dialect extensions in its `apply` function. This used to crash when the vector of `extensions` was internally reallocated while it is being iterated over.

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

More information about the All-commits mailing list