diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-19 06:41:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-19 06:41:13 +0000 |
commit | ab68faf9f0aeecf632c96788bf773e8cef976d33 (patch) | |
tree | 1010b22ea670ee939e80c8f2f3bbb9ac3169f220 /clang | |
parent | 0756c97dae4247d01506104854e5035ce688f755 (diff) | |
download | bcm5719-llvm-ab68faf9f0aeecf632c96788bf773e8cef976d33.tar.gz bcm5719-llvm-ab68faf9f0aeecf632c96788bf773e8cef976d33.zip |
fix warning in no-assert mode.
llvm-svn: 65024
Diffstat (limited to 'clang')
-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; } |