Bug 1459384 - Move some overscoped variables inside the retry-for-comment loop. r=arai

--HG--
extra : rebase_source : 5fffc750cac3bb69031fd9b151dcb0fe340c0df7
This commit is contained in:
Jeff Walden 2018-05-01 13:08:07 -07:00
parent 213f86e0e2
commit 3be21c5482

View File

@ -1512,12 +1512,7 @@ MOZ_MUST_USE bool
TokenStreamSpecific<CharT, AnyCharsAccess>::getTokenInternal(TokenKind* const ttp,
const Modifier modifier)
{
int c;
Token* tp;
FirstCharKind c1kind;
const CharT* numStart;
bool hasExp;
DecimalPoint decimalPoint;
auto FinishToken = [this, &tp,
#ifdef DEBUG
@ -1568,6 +1563,12 @@ TokenStreamSpecific<CharT, AnyCharsAccess>::getTokenInternal(TokenKind* const tt
// This loop runs more than once only when whitespace or comments are
// encountered.
do {
int c;
FirstCharKind c1kind;
bool hasExp;
const CharT* numStart;
DecimalPoint decimalPoint;
if (MOZ_UNLIKELY(!sourceUnits.hasRawChars())) {
tp = newToken(0);
tp->type = TokenKind::Eof;