Sema: Windows/ARM __va_start is not const correct
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 26 Sep 2017 17:44:10 +0000 (17:44 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 26 Sep 2017 17:44:10 +0000 (17:44 +0000)
commit448e8ad94326713b2ef3d19b7fdc397e81114750
tree1e163e353ddff50ae92e2a125a1292891e4be8aa
parent1b3c43b6dd5b67fe46220e1905b6647197b41c93
Sema: Windows/ARM __va_start is not const correct

The `__va_start` intrinsic for Windows ARM does not account for const
correctness when performing a check.  All local qualifiers are ignored
when validating the invocation.  This was exposed by building the swift
stdlib against the Windows 10586 SDK for ARM.  Simply expand out the
check for the two parameters and ignore the qualifiers for the check.

llvm-svn: 314226
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/microsoft-varargs.cpp