summaryrefslogtreecommitdiff
path: root/src/ir/properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r--src/ir/properties.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h
index a2c70a205..7ec1701d6 100644
--- a/src/ir/properties.h
+++ b/src/ir/properties.h
@@ -105,7 +105,7 @@ inline Literal getLiteral(const Expression* curr) {
} else if (auto* n = curr->dynCast<RefNull>()) {
return Literal(n->type);
} else if (auto* r = curr->dynCast<RefFunc>()) {
- return Literal(r->func);
+ return Literal(r->func, r->type);
} else if (auto* i = curr->dynCast<I31New>()) {
if (auto* c = i->value->dynCast<Const>()) {
return Literal::makeI31(c->value.geti32());