summaryrefslogtreecommitdiff
path: root/js/src/vm/TypeInference.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/TypeInference.h')
-rw-r--r--js/src/vm/TypeInference.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/vm/TypeInference.h b/js/src/vm/TypeInference.h
index 58c606912c..b66509d1e8 100644
--- a/js/src/vm/TypeInference.h
+++ b/js/src/vm/TypeInference.h
@@ -843,14 +843,14 @@ public:
DPAConstraintInfo(const DPAConstraintInfo&) = delete;
void operator=(const DPAConstraintInfo&) = delete;
- MOZ_MUST_USE bool addProtoConstraint(JSObject* proto, jsid id) {
+ [[nodiscard]] bool addProtoConstraint(JSObject* proto, jsid id) {
return protoConstraints_.emplaceBack(proto, id);
}
- MOZ_MUST_USE bool addInliningConstraint(JSScript* caller, JSScript* callee) {
+ [[nodiscard]] bool addInliningConstraint(JSScript* caller, JSScript* callee) {
return inliningConstraints_.emplaceBack(caller, callee);
}
- MOZ_MUST_USE bool finishConstraints(JSContext* cx, ObjectGroup* group);
+ [[nodiscard]] bool finishConstraints(JSContext* cx, ObjectGroup* group);
};
bool