silence warning

llvm-svn: 39009
This commit is contained in:
Chris Lattner 2006-10-18 04:02:50 +00:00
parent 964202dac0
commit 8fd6ee1f2f
1 changed files with 1 additions and 3 deletions

View File

@ -299,9 +299,7 @@ static bool AvoidConcat(const LexerToken &PrevTok, const LexerToken &Tok,
// Avoid spelling identifiers, the most common form of token. // Avoid spelling identifiers, the most common form of token.
FirstChar = II->getName()[0]; FirstChar = II->getName()[0];
} else if (Tok.getLength() < 256) { } else if (Tok.getLength() < 256) {
const char *TokPtr = Buffer; FirstChar = Buffer[0];
unsigned Len = PP.getSpelling(Tok, TokPtr);
FirstChar = TokPtr[0];
} else { } else {
FirstChar = PP.getSpelling(Tok)[0]; FirstChar = PP.getSpelling(Tok)[0];
} }