[cfe-commits] r70361 - /cfe/trunk/lib/Sema/SemaChecking.cpp
Chris Lattner
sabre at nondot.org
Tue Apr 28 21:12:37 PDT 2009
Author: lattner
Date: Tue Apr 28 23:12:34 2009
New Revision: 70361
URL: http://llvm.org/viewvc/llvm-project?rev=70361&view=rev
Log:
minor code cleanup
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=70361&r1=70360&r2=70361&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Tue Apr 28 23:12:34 2009
@@ -629,10 +629,10 @@
}
// 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)
More information about the cfe-commits
mailing list