summaryrefslogtreecommitdiff
path: root/test/example/find_div0s.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-18 13:44:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-18 13:44:51 -0700
commitb2fbce4f40c4b8adfdb7cd291d510de9e7219fc6 (patch)
treedae16c11fd37e0bee1a143302c116fe0af04af20 /test/example/find_div0s.cpp
parent0438aa2383724cf0b29554ecb396c9ef26dab92d (diff)
downloadbinaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.tar.gz
binaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.tar.bz2
binaryen-b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6.zip
create a UnifiedExpressionVisitor for passes that want a single visitor function, to avoid confusion with having both visit* and visitExpression in a single pass (#357)
Diffstat (limited to 'test/example/find_div0s.cpp')
-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 6645466cc..4528c7cb4 100644
--- a/test/example/find_div0s.cpp
+++ b/test/example/find_div0s.cpp
@@ -39,7 +39,7 @@ int main() {
// Search it for divisions by zero: Walk the module, looking for
// that operation.
- struct DivZeroSeeker : public PostWalker<DivZeroSeeker> {
+ struct DivZeroSeeker : public PostWalker<DivZeroSeeker, Visitor<DivZeroSeeker>> {
void visitBinary(Binary* curr) {
// In every Binary, look for integer divisions
if (curr->op == BinaryOp::DivS || curr->op == BinaryOp::DivU) {