File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ struct Precompute
313
313
if (auto * r = curr->value ->template dynCast <RefFunc>()) {
314
314
r->func = singleValue.getFunc ();
315
315
auto heapType = getModule ()->getFunction (r->func )->type ;
316
- r->finalize (Type ( heapType, NonNullable) );
316
+ r->finalize (heapType);
317
317
curr->finalize ();
318
318
return ;
319
319
}
Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ class Builder {
688
688
RefFunc* makeRefFunc (Name func, HeapType heapType) {
689
689
auto * ret = wasm.allocator .alloc <RefFunc>();
690
690
ret->func = func;
691
- ret->finalize (Type ( heapType, NonNullable) );
691
+ ret->finalize (heapType);
692
692
return ret;
693
693
}
694
694
RefEq* makeRefEq (Expression* left, Expression* right) {
Original file line number Diff line number Diff line change @@ -1364,7 +1364,7 @@ class RefFunc : public SpecificExpression<Expression::RefFuncId> {
1364
1364
Name func;
1365
1365
1366
1366
void finalize ();
1367
- void finalize (Type type_ );
1367
+ void finalize (HeapType heapType );
1368
1368
};
1369
1369
1370
1370
class RefEq : public SpecificExpression <Expression::RefEqId> {
Original file line number Diff line number Diff line change @@ -821,7 +821,9 @@ void RefFunc::finalize() {
821
821
assert (type.isSignature ());
822
822
}
823
823
824
- void RefFunc::finalize (Type type_) { type = type_; }
824
+ void RefFunc::finalize (HeapType heapType) {
825
+ type = Type (heapType, NonNullable);
826
+ }
825
827
826
828
void RefEq::finalize () {
827
829
if (left->type == Type::unreachable || right->type == Type::unreachable) {
You can’t perform that action at this time.
0 commit comments