[all-commits] [llvm/llvm-project] 89c5c3: [MLIR][IR] Add assert to Operation::moveBefore (NF...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue Apr 29 03:38:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89c5c3ba38492de8163c344d076733b32d522727
      https://github.com/llvm/llvm-project/commit/89c5c3ba38492de8163c344d076733b32d522727
  Author: Christian Ulmann <christianulmann at gmail.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M mlir/lib/IR/Operation.cpp

  Log Message:
  -----------
  [MLIR][IR] Add assert to Operation::moveBefore (NFC) (#137772)

This commit adds an assert to `Operation::moveBefore` which ensures that
moving of operations without a parent block is detected early on. This
case otherwise runs into a segfault, as it's assumed that there is an
parent block.



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