summaryrefslogtreecommitdiff
path: root/js/src/jit/BaselineCacheIR.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/BaselineCacheIR.cpp')
-rw-r--r--js/src/jit/BaselineCacheIR.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/jit/BaselineCacheIR.cpp b/js/src/jit/BaselineCacheIR.cpp
index 5317f0e4e5..a2cb20111b 100644
--- a/js/src/jit/BaselineCacheIR.cpp
+++ b/js/src/jit/BaselineCacheIR.cpp
@@ -168,7 +168,7 @@ class MOZ_RAII CacheRegisterAllocator
writer_(writer)
{}
- MOZ_MUST_USE bool init(const AllocatableGeneralRegisterSet& available) {
+ [[nodiscard]] bool init(const AllocatableGeneralRegisterSet& available) {
availableRegs_ = available;
if (!origInputLocations_.resize(writer_.numInputOperands()))
return false;
@@ -394,12 +394,12 @@ class MOZ_RAII BaselineCacheIRCompiler : public CacheIRCompiler
stubDataOffset_(stubDataOffset)
{}
- MOZ_MUST_USE bool init(CacheKind kind);
+ [[nodiscard]] bool init(CacheKind kind);
JitCode* compile();
private:
-#define DEFINE_OP(op) MOZ_MUST_USE bool emit##op();
+#define DEFINE_OP(op) [[nodiscard]] bool emit##op();
CACHE_IR_OPS(DEFINE_OP)
#undef DEFINE_OP