[all-commits] [llvm/llvm-project] 49a24b: [CodeGen][counted_by] Support use of the comma ope...

Bill Wendling via All-commits all-commits at lists.llvm.org
Fri Aug 1 17:28:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49a24b3116236d65cc2541e8d176ecf9dcb152db
      https://github.com/llvm/llvm-project/commit/49a24b3116236d65cc2541e8d176ecf9dcb152db
  Author: Bill Wendling <morbo at google.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/attr-counted-by.c

  Log Message:
  -----------
  [CodeGen][counted_by] Support use of the comma operator (#151776)

Writing something like this:

  __builtin_dynamic_object_size((0, p->array), 0)

is equivalent to writing this:

  __builtin_dynamic_object_size(p->array, 0)

though the former will give a warning about the first value being
unused.



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