зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1458382 - Break up a one-liner to prevent an internal GCC 8.0.1 error. r=Waldo
This commit is contained in:
Родитель
600dc129c1
Коммит
3e80a2a52f
|
@ -9162,7 +9162,11 @@ void
|
||||||
GeneralParser<ParseHandler, CharT>::checkDestructuringAssignmentName(Node name, TokenPos namePos,
|
GeneralParser<ParseHandler, CharT>::checkDestructuringAssignmentName(Node name, TokenPos namePos,
|
||||||
PossibleError* possibleError)
|
PossibleError* possibleError)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(handler.isName(name));
|
#ifdef DEBUG
|
||||||
|
// GCC 8.0.1 crashes if this is a one-liner.
|
||||||
|
bool isName = handler.isName(name);
|
||||||
|
MOZ_ASSERT(isName);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Return early if a pending destructuring error is already present.
|
// Return early if a pending destructuring error is already present.
|
||||||
if (possibleError->hasPendingDestructuringError())
|
if (possibleError->hasPendingDestructuringError())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче