From b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 18 Apr 2016 13:44:51 -0700 Subject: 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) --- test/example/find_div0s.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/example/find_div0s.cpp') 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 { + struct DivZeroSeeker : public PostWalker> { void visitBinary(Binary* curr) { // In every Binary, look for integer divisions if (curr->op == BinaryOp::DivS || curr->op == BinaryOp::DivU) { -- cgit v1.2.3