From c9352a36227cd0735fa7aaebdea06a49c3de10eb Mon Sep 17 00:00:00 2001 From: Eric Faust Date: Thu, 9 Apr 2015 17:43:08 -0700 Subject: [PATCH] Bug 1141862 - Followup: Assure GCC that superBegin cannot, in fact, be used uninitialized. (rs=jorendorff) --- js/src/frontend/Parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index d829a3b2a9b3..7626d3c99e0d 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -7710,7 +7710,7 @@ Parser::memberExpr(TokenKind tt, bool allowCallSyntax, InvokedPred JS_CHECK_RECURSION(context, return null()); bool isSuper = false; - uint32_t superBegin; + uint32_t superBegin = pos().begin; /* Check for new expression first. */ if (tt == TOK_NEW) { @@ -7739,7 +7739,6 @@ Parser::memberExpr(TokenKind tt, bool allowCallSyntax, InvokedPred } else if (tt == TOK_SUPER) { lhs = null(); isSuper = true; - superBegin = pos().begin; } else { lhs = primaryExpr(tt, invoked); if (!lhs)