[cfe-commits] r65024 - /cfe/trunk/lib/AST/Builtins.cpp

Chris Lattner sabre at nondot.org
Wed Feb 18 22:41:13 PST 2009


Author: lattner
Date: Thu Feb 19 00:41:13 2009
New Revision: 65024

URL: http://llvm.org/viewvc/llvm-project?rev=65024&view=rev
Log:
fix warning in no-assert mode.

Modified:
    cfe/trunk/lib/AST/Builtins.cpp

Modified: cfe/trunk/lib/AST/Builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Builtins.cpp?rev=65024&r1=65023&r2=65024&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Builtins.cpp (original)
+++ cfe/trunk/lib/AST/Builtins.cpp Thu Feb 19 00:41:13 2009
@@ -71,9 +71,7 @@
   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;
 }





More information about the cfe-commits mailing list