Bug 1456100 - Delete an useless line r=jandem
authorKyrian Aouina <scrameustache.ha@gmail.com>
Tue, 24 Apr 2018 11:21:20 +0200
changeset 415365 f43030a06c61
parent 415364 fd0feb0058fc
child 415366 21d58d5d3819
push id33894
push usercbrindusan@mozilla.com
push dateTue, 24 Apr 2018 21:51:36 +0000
treeherdermozilla-central@6eeb97ca94f4 [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;