Bug 1456100 - Delete an useless line r=jandem
authorKyrian Aouina <scrameustache.ha@gmail.com>
Tue, 24 Apr 2018 11:21:20 +0200
changeset 468898 f43030a06c611e2d1d63c646fe72f7fbc757d082
parent 468897 fd0feb0058fc93361dc94df776a9fea43c0aab82
child 468899 21d58d5d3819b36a5c7dd8267e9bf1ca96e5ba30
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [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;