summaryrefslogtreecommitdiff
path: root/js/src/jit/IonCode.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/IonCode.h')
-rw-r--r--js/src/jit/IonCode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/jit/IonCode.h b/js/src/jit/IonCode.h
index 2d9469dead..ddc0af4bb7 100644
--- a/js/src/jit/IonCode.h
+++ b/js/src/jit/IonCode.h
@@ -434,7 +434,7 @@ struct IonScript
bool hasProfilingInstrumentation() const {
return hasProfilingInstrumentation_;
}
- MOZ_MUST_USE bool addTraceLoggerEvent(TraceLoggerEvent& event) {
+ [[nodiscard]] bool addTraceLoggerEvent(TraceLoggerEvent& event) {
MOZ_ASSERT(event.hasPayload());
return traceLoggerEvents_.append(Move(event));
}
@@ -617,7 +617,7 @@ struct IonBlockCounts
public:
- MOZ_MUST_USE bool init(uint32_t id, uint32_t offset, char* description,
+ [[nodiscard]] bool init(uint32_t id, uint32_t offset, char* description,
uint32_t numSuccessors) {
id_ = id;
offset_ = offset;
@@ -715,7 +715,7 @@ struct IonScriptCounts
}
}
- MOZ_MUST_USE bool init(size_t numBlocks) {
+ [[nodiscard]] bool init(size_t numBlocks) {
blocks_ = js_pod_calloc<IonBlockCounts>(numBlocks);
if (!blocks_)
return false;