From: Chris Lattner Date: Wed, 29 Apr 2009 04:12:34 +0000 (+0000) Subject: minor code cleanup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9fc856696defc78750fdb4977c4dce34307a7f1;p=clang minor code cleanup git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70361 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 8e3a4212e0..7d54dc0c5f 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -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)