diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-02-10 19:13:51 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-02-10 19:13:51 +0000 |
commit | e3d8e737e18f0ce95d87be03f74b35413443173c (patch) | |
tree | ad436e17053c43ae627d18d72319be67a6a61508 /lib | |
parent | 3ac109cd17151bb8ad3a40b0cbb0e1923cd6c4a0 (diff) |
Enhance checking for null format string literal to take into account __null. Fixes <rdar://problem/8269537>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index a44633d5d7..be326880d5 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -1381,6 +1381,7 @@ bool Sema::SemaCheckStringLiteral(const Expr *E, Expr **Args, inFunctionCall); } + case Stmt::GNUNullExprClass: case Stmt::IntegerLiteralClass: // Technically -Wformat-nonliteral does not warn about this case. // The behavior of printf and friends in this case is implementation |