summaryrefslogtreecommitdiff
path: root/compiler/loco/src/Service/TypeInference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/loco/src/Service/TypeInference.cpp')
-rw-r--r--compiler/loco/src/Service/TypeInference.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/loco/src/Service/TypeInference.cpp b/compiler/loco/src/Service/TypeInference.cpp
index fbf0033ee..27d7d9a29 100644
--- a/compiler/loco/src/Service/TypeInference.cpp
+++ b/compiler/loco/src/Service/TypeInference.cpp
@@ -182,7 +182,7 @@ bool CanonicalTypeInferenceRule::infer(const Node *node, DataType &dtype) const
assert(dynamic_cast<const loco::CanonicalNode *>(node) != nullptr);
CanonicalTypeForwardAlgorithm alg;
- dtype = dynamic_cast<const loco::CanonicalNode *>(node)->accept(&alg);
+ dtype = loco::must_cast<const loco::CanonicalNode *>(node)->accept(&alg);
return true;
}