forked from OSchip/llvm-project
parent
964202dac0
commit
8fd6ee1f2f
|
@ -299,9 +299,7 @@ static bool AvoidConcat(const LexerToken &PrevTok, const LexerToken &Tok,
|
|||
// Avoid spelling identifiers, the most common form of token.
|
||||
FirstChar = II->getName()[0];
|
||||
} else if (Tok.getLength() < 256) {
|
||||
const char *TokPtr = Buffer;
|
||||
unsigned Len = PP.getSpelling(Tok, TokPtr);
|
||||
FirstChar = TokPtr[0];
|
||||
FirstChar = Buffer[0];
|
||||
} else {
|
||||
FirstChar = PP.getSpelling(Tok)[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue