Bug 1458236 - Correct unused variable in Simulator-arm.cpp. r=jandem
authorMatthew Gaudet <mgaudet@mozilla.com>
Tue, 01 May 2018 10:50:02 -0400
changeset 472603 edef0c031724fd5f02e75815d1f0f1d763a95efa
parent 472602 eb885e55357454de7ddcca8864a8caea11b6c2d2
child 472604 5680d99b35d50db7a3dd3a6b4b6bf26541422be1
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1458236
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 1458236 - Correct unused variable in Simulator-arm.cpp. r=jandem
js/src/jit/arm/Simulator-arm.cpp
--- a/js/src/jit/arm/Simulator-arm.cpp
+++ b/js/src/jit/arm/Simulator-arm.cpp
@@ -28,16 +28,17 @@
 
 #include "jit/arm/Simulator-arm.h"
 
 #include "mozilla/Casting.h"
 #include "mozilla/DebugOnly.h"
 #include "mozilla/FloatingPoint.h"
 #include "mozilla/Likely.h"
 #include "mozilla/MathAlgorithms.h"
+#include "mozilla/Unused.h"
 
 #include "jit/arm/Assembler-arm.h"
 #include "jit/arm/disasm/Constants-arm.h"
 #include "jit/AtomicOperations.h"
 #include "threading/LockGuard.h"
 #include "vm/Runtime.h"
 #include "vm/SharedMem.h"
 #include "wasm/WasmInstance.h"
@@ -1092,16 +1093,17 @@ SimulatorProcess::checkICacheLocked(SimI
     char* cached_line = cache_page->cachedData(offset & ~CachePage::kLineMask);
 
     if (cache_hit) {
         // Check that the data in memory matches the contents of the I-cache.
         int cmpret = memcmp(reinterpret_cast<void*>(instr),
                             cache_page->cachedData(offset),
                             SimInstruction::kInstrSize);
         MOZ_ASSERT(cmpret == 0);
+        mozilla::Unused << cmpret;
     } else {
         // Cache miss. Load memory into the cache.
         memcpy(cached_line, line, CachePage::kLineLength);
         *cache_valid_byte = CachePage::LINE_VALID;
     }
 }
 
 HashNumber