[all-commits] [llvm/llvm-project] 96d331: Sema: relax va_start checking further for Windows ...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Mon Sep 20 14:24:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96d3319d6f024b17ac725d9595548acc4787003c
      https://github.com/llvm/llvm-project/commit/96d3319d6f024b17ac725d9595548acc4787003c
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/Sema/microsoft-varargs.c

  Log Message:
  -----------
  Sema: relax va_start checking further for Windows AArch64

When building in C mode, the VC runtime assumes that it can use pointer
aliasing through `char *` for the parameter to `__va_start`.  Relax the
checks further.  In theory we could keep the tests strict for non-system
header code, but this takes the less strict approach as the additional
check doesn't particularly end up being too much more helpful for
correctness.  The C++ type system is a bit stricter and requires the
explicit cast which we continue to verify.




More information about the All-commits mailing list