summaryrefslogtreecommitdiffstats
path: root/test/Sema
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-02 20:10:03 +0000
committerReid Kleckner <rnk@google.com>2017-05-02 20:10:03 +0000
commitd4c7d56bc10f7ff94bee315f25c37a51cdc9e40b (patch)
treec0401c552ffe6de2fcdd37a533e3473619ea23b0 /test/Sema
parentc2b24078dac29a86b6798816366e73b8d97a3e40 (diff)
Simplify some va_start checking logic
Combine the logic doing the ms_abi/sysv_abi checks into one function so that each check and its logical opposite are near each other. Now we don't need two Sema entry points for MS va_start and regular va_start. Refactor the code that checks if the va_start caller is a function, block, or obj-c method. We do this in three places, and they are all buggy for variadic lambdas (PR32737). After this change, I have one place to apply the functional fix. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r--test/Sema/varargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/varargs.c b/test/Sema/varargs.c
index 25a5c72c42..0ade0cf0aa 100644
--- a/test/Sema/varargs.c
+++ b/test/Sema/varargs.c
@@ -27,7 +27,7 @@ void f3(float a, ...) { // expected-note 2{{parameter of type 'float' is declare
}
-// stdarg: PR3075
+// stdarg: PR3075 and PR2531
void f4(const char *msg, ...) {
__builtin_va_list ap;
__builtin_stdarg_start((ap), (msg));