[all-commits] [llvm/llvm-project] cd3573: [MLIR][IR] Add assert to Operation::moveBefore (NFC)

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue Apr 29 01:59:43 PDT 2025


  Branch: refs/heads/users/dinistro/add-assert-to-block-move
  Home:   https://github.com/llvm/llvm-project
  Commit: cd357382566cdde0e8fe82950d68098e86be2c86
      https://github.com/llvm/llvm-project/commit/cd357382566cdde0e8fe82950d68098e86be2c86
  Author: Christian Ulmann <christian.ulmann at nextsilicon.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)

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