[all-commits] [llvm/llvm-project] 956b47: [X86_32] Teach X86_32 va_arg to ignore empty struc...

Longsheng Mou via All-commits all-commits at lists.llvm.org
Wed Apr 3 04:12:33 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 956b47b48616148c15f8f95d76d5e0c215fe095c
      https://github.com/llvm/llvm-project/commit/956b47b48616148c15f8f95d76d5e0c215fe095c
  Author: Longsheng Mou <moulongsheng at huawei.com>
  Date:   2024-04-03 (Wed, 03 Apr 2024)

  Changed paths:
    M clang/lib/CodeGen/Targets/X86.cpp
    A clang/test/CodeGenCXX/x86_32-vaarg.cpp

  Log Message:
  -----------
  [X86_32] Teach X86_32 va_arg to ignore empty structs. (#86075)

Empty structs are ignored for parameter passing purposes, but va_arg was
incrementing the pointer anyway for that the size of empty struct in c++
is 1 byte, which could lead to va_list getting out of sync. Fix #86057.



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