[all-commits] [llvm/llvm-project] 42afaf: [clang][CodeGen] Use memory type representation in...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Fri Feb 4 03:11:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42afaf7f472ce8ae14f1aa3858f1a8f3abc4ac67
      https://github.com/llvm/llvm-project/commit/42afaf7f472ce8ae14f1aa3858f1a8f3abc4ac67
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGen/arm64-arguments.c

  Log Message:
  -----------
  [clang][CodeGen] Use memory type representation in `va_arg`

Some types (e.g. `_Bool`) have different scalar and memory representations. CodeGen for `va_arg` didn't take this into account, leading to an assertion failures with different types.

This patch makes sure we use memory representation for `va_arg`.

Reviewed By: ahatanak

Differential Revision: https://reviews.llvm.org/D118904




More information about the All-commits mailing list