From ea63b1575c80a4c426b114e03fd5f124360a141d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 17 Dec 2007 18:38:31 +0000 Subject: [PATCH] Format string checker: asprintf does not pass argumnents via va_list. llvm-svn: 45110 --- clang/Sema/SemaChecking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/Sema/SemaChecking.cpp b/clang/Sema/SemaChecking.cpp index b83e5120a1c7..38b93ab1ebd8 100644 --- a/clang/Sema/SemaChecking.cpp +++ b/clang/Sema/SemaChecking.cpp @@ -98,7 +98,7 @@ Sema::CheckFunctionCall(Expr *Fn, case id_fprintf: format_idx = 1; break; case id_sprintf: format_idx = 1; break; case id_snprintf: format_idx = 2; break; - case id_asprintf: format_idx = 1; HasVAListArg = true; break; + case id_asprintf: format_idx = 1; break; case id_vsnprintf: format_idx = 2; HasVAListArg = true; break; case id_vasprintf: format_idx = 1; HasVAListArg = true; break; case id_vfprintf: format_idx = 1; HasVAListArg = true; break;