summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-09-27 08:24:15 +0000
committerMartin Storsjo <martin@martin.st>2018-09-27 08:24:15 +0000
commit4d8a679e365fd96e5bcd0d097268ed803ce842cf (patch)
treee6ccbc79f26ef813d83ee11c8fe99a5fab1262cb /lib
parent080ad1cf4523fc8a785c653e646b9815803a5e55 (diff)
downloadclang-4d8a679e365fd96e5bcd0d097268ed803ce842cf.tar.gz
[Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM
This fixes PR39090. Differential Revision: https://reviews.llvm.org/D52571 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaChecking.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index c46468f1c7..a258d349c6 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -929,6 +929,7 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
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))