diff options
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/Precompute.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp index 709fd7d3d..0fc0753ae 100644 --- a/src/passes/Precompute.cpp +++ b/src/passes/Precompute.cpp @@ -298,7 +298,8 @@ struct Precompute singleValue.type.getHeapType().isSignature()) { if (auto* r = curr->value->template dynCast<RefFunc>()) { r->func = singleValue.getFunc(); - r->finalize(); + auto heapType = getModule()->getFunction(r->func)->type; + r->finalize(Type(heapType, NonNullable)); curr->finalize(); return; } |