[all-commits] [llvm/llvm-project] 41b83b: No longer assert on incorrect attribute argument i...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Apr 1 04:56:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41b83b48e37aa0c7f9e0458638567f37d6dbc924
      https://github.com/llvm/llvm-project/commit/41b83b48e37aa0c7f9e0458638567f37d6dbc924
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-01 (Tue, 01 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Sema/attr-args.c

  Log Message:
  -----------
  No longer assert on incorrect attribute argument index (#133766)

Fixes an assertion when referencing an out-of-bounds parameter via a
function attribute whose argument list refers to parameters by index and
the function is variadic. e.g.,

    __attribute__ ((__format_arg__(2))) void test (int i, ...) { }

Fixes #61635



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