Skip to content

Commit 05ce530

Browse files
committed
fix ExpressionManipulator::refNull not applying the type
1 parent 97ebb0c commit 05ce530

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ir/manipulation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ template<typename InputType> inline Nop* nop(InputType* target) {
4141
}
4242

4343
template<typename InputType> inline RefNull* refNull(InputType* target) {
44+
auto targetType = target->type;
4445
auto* ret = convert<InputType, RefNull>(target);
45-
ret->finalize();
46+
ret->finalize(targetType);
4647
return ret;
4748
}
4849

0 commit comments

Comments
 (0)