diff options
Diffstat (limited to 'src/ir/module-utils.cpp')
-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 f3d9201b7..8e6ac0d1a 100644 --- a/src/ir/module-utils.cpp +++ b/src/ir/module-utils.cpp @@ -71,7 +71,7 @@ struct CodeScanner } else if (curr->is<ArrayInit>()) { counts.note(curr->type); } else if (auto* cast = curr->dynCast<RefCast>()) { - counts.note(cast->intendedType); + counts.note(cast->type); } else if (auto* cast = curr->dynCast<RefTest>()) { counts.note(cast->intendedType); } else if (auto* cast = curr->dynCast<BrOn>()) { |