diff options
Diffstat (limited to 'src/ir')
-rw-r--r-- | src/ir/module-utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<RefCast>()) { counts.note(cast->type); } else if (auto* cast = curr->dynCast<RefTest>()) { - counts.note(cast->intendedType); + counts.note(cast->castType); } else if (auto* cast = curr->dynCast<BrOn>()) { if (cast->op == BrOnCast || cast->op == BrOnCastFail) { counts.note(cast->intendedType); |