[all-commits] [llvm/llvm-project] 004f20: [CodeGen][CFI] Generalize transparent union parame...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Fri Sep 12 19:19:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 004f209199d53a0c7a00ca7af4446407da4c9fb1
      https://github.com/llvm/llvm-project/commit/004f209199d53a0c7a00ca7af4446407da4c9fb1
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-09-13 (Sat, 13 Sep 2025)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGen/cfi-icall-generalize.c
    M clang/test/CodeGen/cfi-icall-normalize2.c
    M clang/test/CodeGen/kcfi-generalize.c
    M clang/test/CodeGen/kcfi-normalize.c

  Log Message:
  -----------
  [CodeGen][CFI] Generalize transparent union parameters (#158193)

According GCC documentation transparent union
calling convention is the same as the type of the
first member of the union.

C++ ignores attribute.

Note, it does not generalize args of function pointer args.
It's unnecessary with pointer generalization.
It will be fixed in followup patch.

---------

Co-authored-by: lntue <lntue at google.com>



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