From 9070ff54453bec5e90727cc586b4a702b54628d4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 18 May 2016 17:32:43 -0700 Subject: use separate internal opcodes for binary variants --- 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 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> { 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(); if (right && right->value.getInteger() == 0) { -- cgit v1.2.3