[all-commits] [llvm/llvm-project] 2fabed: [SPIR-V] Diagnose out-of-bounds argument index in ...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Wed Jun 3 04:17:51 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fabed5f49d950b669b9f9a5a624d61aa8bdeda0
      https://github.com/llvm/llvm-project/commit/2fabed5f49d950b669b9f9a5a624d61aa8bdeda0
  Author: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVUtils.cpp
    A llvm/test/CodeGen/SPIRV/cloned-funcs-metadata-oob.ll

  Log Message:
  -----------
  [SPIR-V] Diagnose out-of-bounds argument index in function type metadata (#200601)

The argument index in spv.cloned_funcs/spv.mutated_callsites metadata
was used to index the parameter list with only a lower bound assert

Add boundaries check it and report_fatal_error rather than silently
miscompiling



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