diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-18 17:32:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-18 18:28:16 -0700 |
commit | 9070ff54453bec5e90727cc586b4a702b54628d4 (patch) | |
tree | ddf944ba236f25ed8a839ffba8827dd31c9b9979 /test/example/find_div0s.cpp | |
parent | b88e9de7df6a8b2ba9381e27dff3aa3dff64f764 (diff) | |
download | binaryen-9070ff54453bec5e90727cc586b4a702b54628d4.tar.gz binaryen-9070ff54453bec5e90727cc586b4a702b54628d4.tar.bz2 binaryen-9070ff54453bec5e90727cc586b4a702b54628d4.zip |
use separate internal opcodes for binary variants
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 c3a2c0750..45e7f4633 100644 --- a/test/example/find_div0s.cpp +++ b/test/example/find_div0s.cpp @@ -42,7 +42,7 @@ int main() { 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) { + if (curr->op == BinaryOp::DivSInt32 || curr->op == BinaryOp::DivUInt32) { // Check if the right operand is a constant, and if it is 0 auto right = curr->right->dynCast<Const>(); if (right && right->value.getInteger() == 0) { |