summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-19 06:41:13 +0000
committerChris Lattner <sabre@nondot.org>2009-02-19 06:41:13 +0000
commitab68faf9f0aeecf632c96788bf773e8cef976d33 (patch)
tree1010b22ea670ee939e80c8f2f3bbb9ac3169f220 /clang
parent0756c97dae4247d01506104854e5035ce688f755 (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud