[PATCH] D52571: [Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 26 13:19:04 PDT 2018
mstorsjo created this revision.
mstorsjo added reviewers: dmajor, mgrang, ssijaric, rnk, compnerd.
Herald added subscribers: chrib, kristof.beyls.
This fixes PR39090.
Repository:
rC Clang
https://reviews.llvm.org/D52571
Files:
lib/Sema/SemaChecking.cpp
test/SemaCXX/microsoft-varargs.cpp
Index: test/SemaCXX/microsoft-varargs.cpp
===================================================================
--- test/SemaCXX/microsoft-varargs.cpp
+++ test/SemaCXX/microsoft-varargs.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -fsyntax-only %s -verify
+// RUN: %clang_cc1 -triple aarch64-windows -fms-compatibility -fsyntax-only %s -verify
// expected-no-diagnostics
extern "C" {
Index: lib/Sema/SemaChecking.cpp
===================================================================
--- lib/Sema/SemaChecking.cpp
+++ lib/Sema/SemaChecking.cpp
@@ -929,6 +929,7 @@
break;
case Builtin::BI__va_start: {
switch (Context.getTargetInfo().getTriple().getArch()) {
+ case llvm::Triple::aarch64:
case llvm::Triple::arm:
case llvm::Triple::thumb:
if (SemaBuiltinVAStartARMMicrosoft(TheCall))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52571.167183.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180926/f137b510/attachment.bin>
More information about the cfe-commits
mailing list