diff options
author | Michael Bebenita <mbebenita@gmail.com> | 2016-01-13 20:13:04 -0800 |
---|---|---|
committer | Michael Bebenita <mbebenita@gmail.com> | 2016-01-13 20:13:04 -0800 |
commit | e165020f87f807179d27203195843c88fb8afe55 (patch) | |
tree | 6b8f19534b32e8a8de32e6d380f5a537a6965368 /test/example/find_div0s.cpp | |
parent | 7e3bdd00f9b390c36461291fa5b884ace55e82d6 (diff) | |
download | binaryen-e165020f87f807179d27203195843c88fb8afe55.tar.gz binaryen-e165020f87f807179d27203195843c88fb8afe55.tar.bz2 binaryen-e165020f87f807179d27203195843c88fb8afe55.zip |
Use LLVM style static polymorphism for WasmVisitors.
Diffstat (limited to 'test/example/find_div0s.cpp')
-rw-r--r-- | test/example/find_div0s.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example/find_div0s.cpp b/test/example/find_div0s.cpp index d09f1de55..3dffa30b5 100644 --- a/test/example/find_div0s.cpp +++ b/test/example/find_div0s.cpp @@ -38,7 +38,7 @@ int main() { // Search it for divisions by zero: Walk the module, looking for // that operation. - struct DivZeroSeeker : public WasmWalker { + struct DivZeroSeeker : public WasmWalker<DivZeroSeeker, void> { void visitBinary(Binary* curr) { // In every Binary, look for integer divisions if (curr->op == BinaryOp::DivS || curr->op == BinaryOp::DivU) { |