From 6e770fea9f7f46aa4725bf81865024a0c9b96ad7 Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Tue, 21 May 2013 11:51:23 -0500 Subject: [PATCH] Silence clang "enumeration value not handled in switch" warnings. No bug#, rs=sfink on IRC. --- js/src/frontend/BytecodeEmitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 658659f1cac..2238490a857 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -1000,6 +1000,7 @@ BytecodeEmitter::isAliasedName(ParseNode *pn) return script->varIsAliased(pn->pn_cookie.slot()); case Definition::PLACEHOLDER: case Definition::NAMED_LAMBDA: + case Definition::MISSING: JS_NOT_REACHED("unexpected dn->kind"); } return false; @@ -1343,6 +1344,9 @@ BindNameToSlotHelper(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn) case Definition::PLACEHOLDER: return true; + + case Definition::MISSING: + JS_NOT_REACHED("missing"); } /*