From 49fb2e23bb3c932389f23fdda33a32d034ca9a0c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 21 Dec 2022 11:47:48 -0600 Subject: Support `ref.test null` (#5368) This new variant of ref.test returns 1 if the input is null. --- src/ir/module-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir') diff --git a/src/ir/module-utils.cpp b/src/ir/module-utils.cpp index f7ba7d776..482753b87 100644 --- a/src/ir/module-utils.cpp +++ b/src/ir/module-utils.cpp @@ -73,7 +73,7 @@ struct CodeScanner } else if (auto* cast = curr->dynCast()) { counts.note(cast->type); } else if (auto* cast = curr->dynCast()) { - counts.note(cast->intendedType); + counts.note(cast->castType); } else if (auto* cast = curr->dynCast()) { if (cast->op == BrOnCast || cast->op == BrOnCastFail) { counts.note(cast->intendedType); -- cgit v1.2.3