]> granicus.if.org Git - clang/commitdiff
minor code cleanup
authorChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 04:12:34 +0000 (04:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Apr 2009 04:12:34 +0000 (04:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70361 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaChecking.cpp

index 8e3a4212e05757e9030f0b4ae73adb7551bd44c7..7d54dc0c5ff0234bc2a5b64b3ef1dd3942d2b07e 100644 (file)
@@ -629,10 +629,10 @@ void Sema::CheckPrintfString(const StringLiteral *FExpr,
   }
 
   // Str - The format string.  NOTE: this is NOT null-terminated!
-  const char * const Str = FExpr->getStrData();
+  const char *Str = FExpr->getStrData();
 
   // CHECK: empty format string?
-  const unsigned StrLen = FExpr->getByteLength();
+  unsigned StrLen = FExpr->getByteLength();
   
   if (StrLen == 0) {
     Diag(FExpr->getLocStart(), diag::warn_printf_empty_format_string)