diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-12-17 18:38:31 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-12-17 18:38:31 +0000 |
| commit | ea63b1575c80a4c426b114e03fd5f124360a141d (patch) | |
| tree | 18938bd8729b9f05f7e3c6f8b43bd5c85789e33e | |
| parent | 4ffe46cbdf4db64ad20f1b67a998708a7ebaf409 (diff) | |
| download | bcm5719-llvm-ea63b1575c80a4c426b114e03fd5f124360a141d.tar.gz bcm5719-llvm-ea63b1575c80a4c426b114e03fd5f124360a141d.zip | |
Format string checker: asprintf does not pass argumnents via va_list.
llvm-svn: 45110
| -rw-r--r-- | clang/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaChecking.cpp b/clang/Sema/SemaChecking.cpp index b83e5120a1c..38b93ab1ebd 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; |

