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

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Jul 12 06:58:28 PDT 2025


  Branch: refs/heads/users/matthias-springer/spriv_use_after_free
  Home:   https://github.com/llvm/llvm-project
  Commit: b67efe61d2b9a93c2930680da81ce35710ea104d
      https://github.com/llvm/llvm-project/commit/b67efe61d2b9a93c2930680da81ce35710ea104d
  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

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`.



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