diff options
-rw-r--r-- | clang/lib/AST/Builtins.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/AST/Builtins.cpp b/clang/lib/AST/Builtins.cpp index e4a79e4a380..b572e8e04b5 100644 --- a/clang/lib/AST/Builtins.cpp +++ b/clang/lib/AST/Builtins.cpp @@ -71,9 +71,7 @@ Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, assert(*Printf == ':' && "p or P specifier must have be followed by a ':'"); ++Printf; - const char *PrintfEnd = strchr(Printf, ':'); - assert(PrintfEnd && "printf specifier must end with a ':'"); - + assert(strchr(Printf, ':') && "printf specifier must end with a ':'"); FormatIdx = strtol(Printf, 0, 10); return true; } |