minor code cleanup

llvm-svn: 70361
This commit is contained in:
Chris Lattner 2009-04-29 04:12:34 +00:00
parent 7d10386113
commit e3fa5aa91c
1 changed files with 2 additions and 2 deletions

View 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)