summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-11 17:31:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-11 17:34:33 -0700
commit1044d6cbca6d279d457cdd1cf7000671ec48e841 (patch)
treebf4255d2fead5fdf721ea178607abfc408cd6ac8 /test
parent9663f99fa5beb06255d9b564ae9926cfb80a53d8 (diff)
downloadbinaryen-1044d6cbca6d279d457cdd1cf7000671ec48e841.tar.gz
binaryen-1044d6cbca6d279d457cdd1cf7000671ec48e841.tar.bz2
binaryen-1044d6cbca6d279d457cdd1cf7000671ec48e841.zip
dyn_cast => dynCast
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";
}