[all-commits] [llvm/llvm-project] cff656: [mlir][spirv] Fix incorrect argument erasure in de...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Mon Apr 7 07:00:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cff65657d9896cc04ca96907dd8e789403432a28
      https://github.com/llvm/llvm-project/commit/cff65657d9896cc04ca96907dd8e789403432a28
  Author: Igor Wodiany <igor.wodiany at imgtec.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp

  Log Message:
  -----------
  [mlir][spirv] Fix incorrect argument erasure in deserializer (#134610)

The current implementation iterates and modifies the list of arguments
at the same time. Depending on the number of arguments this will trigger
an assert: `assert(index < arguments.size())`. This change replaces loop
with a range based erasure.



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