[all-commits] [llvm/llvm-project] 12e3d9: [CIR] Add support for lowering __builtin_c23_va_st...

Akshay K via All-commits all-commits at lists.llvm.org
Fri Jul 17 15:08:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12e3d9db0088d95675a0081495122483faa7b60d
      https://github.com/llvm/llvm-project/commit/12e3d9db0088d95675a0081495122483faa7b60d
  Author: Akshay K <iit.akshay at gmail.com>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
    M clang/test/CIR/CodeGen/var_arg.c

  Log Message:
  -----------
  [CIR] Add support for lowering __builtin_c23_va_start in ClangIR (#208741)

C23 `va_start `expands to `__builtin_c23_va_start`, which was previously
routed to the unimplemented-builtin NYI path in ClangIR. As a result,
variadic code failed to compile with -fclangir in -std=c23 mode.

This change lowers `__builtin_c23_va_start` the same way as
`__builtin_va_start`. For both builtins, the va_list operand is always
argument 0, so the existing lowering logic can be reused directly.



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