summaryrefslogtreecommitdiff
path: root/src/ir/module-utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/module-utils.cpp')
-rw-r--r--src/ir/module-utils.cpp2
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>()) {