summaryrefslogtreecommitdiff
path: root/test/example/find_div0s.cpp
diff options
context:
space:
mode:
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 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) {