summaryrefslogtreecommitdiff
path: root/js/src/jit/PcScriptCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/PcScriptCache.h')
-rw-r--r--js/src/jit/PcScriptCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jit/PcScriptCache.h b/js/src/jit/PcScriptCache.h
index 03f8f311b4..c3060f3ea4 100644
--- a/js/src/jit/PcScriptCache.h
+++ b/js/src/jit/PcScriptCache.h
@@ -40,8 +40,8 @@ struct PcScriptCache
}
// Get a value from the cache. May perform lazy allocation.
- MOZ_MUST_USE bool get(JSRuntime* rt, uint32_t hash, uint8_t* addr,
- JSScript** scriptRes, jsbytecode** pcRes)
+ [[nodiscard]] bool get(JSRuntime* rt, uint32_t hash, uint8_t* addr,
+ JSScript** scriptRes, jsbytecode** pcRes)
{
// If a GC occurred, lazily clear the cache now.
if (gcNumber != rt->gc.gcNumber()) {