summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/example/find_div0s.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp
index 9f1cf911f..14eac95bb 100644
--- a/test/example/find_div0s.cpp
+++ b/test/example/find_div0s.cpp
@@ -44,7 +44,7 @@ int main() {
// In every Binary, look for integer divisions
if (curr->op == BinaryOp::DivS || curr->op == BinaryOp::DivU) {
// Check if the right operand is a constant, and if it is 0
- auto right = curr->right->dyn_cast<Const>();
+ auto right = curr->right->dynCast<Const>();
if (right && right->value.getInteger() == 0) {
std::cout << "We found that " << curr->left << " is divided by zero\n";
}