Bug 1077949 - Followup: explicitly cast nullptr to work around GCC. (r=bustage)
authorShu-yu Guo <shu@rfrn.org>
Wed, 15 Oct 2014 18:33:48 -0700
changeset 210667 d4aa76cff57bcfa9a129d92011582c4ee0cedcf3
parent 210666 23009633a7dc2023a9d13d26596fda4dbc8897e5
child 210668 ed8328e5cbb3b3b27dc302575ff3e564dfe67f33
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbustage
bugs1077949
milestone36.0a1
Bug 1077949 - Followup: explicitly cast nullptr to work around GCC. (r=bustage)
js/src/frontend/Parser.cpp
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -1254,17 +1254,17 @@ ConvertDefinitionToNamedLambdaUse(TokenS
     return true;
 }
 
 static bool
 IsNonDominatingInScopedSwitch(ParseContext<FullParseHandler> *pc, HandleAtom name,
                               Definition *dn)
 {
     MOZ_ASSERT(dn->isLet());
-    StmtInfoPC *stmt = LexicalLookup(pc, name, nullptr, nullptr);
+    StmtInfoPC *stmt = LexicalLookup(pc, name, nullptr, (StmtInfoPC *)nullptr);
     if (stmt && stmt->type == STMT_SWITCH)
         return dn->pn_cookie.slot() < stmt->firstDominatingLexicalInCase;
     return false;
 }
 
 static void
 AssociateUsesWithOuterDefinition(ParseNode *pnu, Definition *dn, Definition *outer_dn,
                                  bool markUsesAsLet)