diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-29 04:12:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-29 04:12:34 +0000 |
commit | b9fc856696defc78750fdb4977c4dce34307a7f1 (patch) | |
tree | 35c753e6814ca4e5f586065e09b2cf82fa6b45fa /lib/Sema/SemaChecking.cpp | |
parent | 622310792eb2504c8431ca5ea74477af11b95677 (diff) |
minor code cleanup
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |