summaryrefslogtreecommitdiff
path: root/src/ir/possible-constant.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/possible-constant.h')
-rw-r--r--src/ir/possible-constant.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ir/possible-constant.h b/src/ir/possible-constant.h
index 21f1cfa65..79a9973b5 100644
--- a/src/ir/possible-constant.h
+++ b/src/ir/possible-constant.h
@@ -48,6 +48,10 @@ private:
public:
PossibleConstantValues() : value(None()) {}
+ bool operator==(const PossibleConstantValues& other) const {
+ return value == other.value;
+ }
+
// Notes the contents of an expression and update our internal knowledge based
// on it and all previous values noted.
void note(Expression* expr, Module& wasm) {
@@ -155,7 +159,7 @@ public:
}
// Assuming we have a single value, make an expression containing that value.
- Expression* makeExpression(Module& wasm) {
+ Expression* makeExpression(Module& wasm) const {
Builder builder(wasm);
if (isConstantLiteral()) {
return builder.makeConstantExpression(getConstantLiteral());