Bug 1456100 - Delete an useless line r=jandem
authorKyrian Aouina <scrameustache.ha@gmail.com>
Tue, 24 Apr 2018 11:21:20 +0200
changeset 415295 f43030a06c61
parent 415294 fd0feb0058fc
child 415296 21d58d5d3819
push id102535
push usersledru@mozilla.com
push dateTue, 24 Apr 2018 13:48:49 +0000
treeherdermozilla-inbound@f43030a06c61 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1456100
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1456100 - Delete an useless line r=jandem
js/src/frontend/BytecodeEmitter.cpp
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -4478,17 +4478,16 @@ BytecodeEmitter::emitSwitch(ParseNode* p
     JSOp switchOp = JSOP_TABLESWITCH;
     uint32_t tableLength = 0;
     int32_t low, high;
     bool hasDefault = false;
     CaseClause* firstCase = cases->pn_head ? &cases->pn_head->as<CaseClause>() : nullptr;
     if (caseCount == 0 ||
         (caseCount == 1 && (hasDefault = firstCase->isDefault())))
     {
-        caseCount = 0;
         low = 0;
         high = -1;
     } else {
         Vector<size_t, 128, SystemAllocPolicy> intmap;
         int32_t intmapBitLength = 0;
 
         low  = JSVAL_INT_MAX;
         high = JSVAL_INT_MIN;