[all-commits] [llvm/llvm-project] 170578: [mlir][SPIRV] Do not access erased op in SPIRV->LL...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Jul 12 10:42:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 170578d400b6b6975d33c0598fdcf2a94123734f
      https://github.com/llvm/llvm-project/commit/170578d400b6b6975d33c0598fdcf2a94123734f
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-07-12 (Sat, 12 Jul 2025)

  Changed paths:
    M mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp

  Log Message:
  -----------
  [mlir][SPIRV] Do not access erased op in SPIRV->LLVM lowering (#148373)

This commit fixes two occurrences where an erased op was accessed at a
later point of time. That won't work anymore in a One-Shot Dialect
Conversion and triggers a use-after-free sanitizer error.

After the One-Shot Dialect Conversion refactoring, a
`ConversionPatternRewriter` will behave more like a normal
`PatternRewriter`.

---------

Co-authored-by: Markus Böck <markus.boeck02 at gmail.com>



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