diff options
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r-- | src/ir/properties.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h index 7f247f72f..e8a17b106 100644 --- a/src/ir/properties.h +++ b/src/ir/properties.h @@ -117,7 +117,7 @@ inline Literal getLiteral(const Expression* curr) { return Literal(n->type); } else if (auto* r = curr->dynCast<RefFunc>()) { return Literal(r->func, r->type.getHeapType()); - } else if (auto* i = curr->dynCast<I31New>()) { + } else if (auto* i = curr->dynCast<RefI31>()) { if (auto* c = i->value->dynCast<Const>()) { return Literal::makeI31(c->value.geti32()); } |