Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index f920a6529926df8dbe72e54d36fed421cf586dbf..335b73fb88834c6cae44771c65dcf600b73c21c3 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -3761,7 +3761,7 @@ class HBinaryOperation : public HTemplateInstruction<3> { |
bool RightIsPowerOf2() { |
if (!right()->IsInteger32Constant()) return false; |
int32_t value = right()->GetInteger32Constant(); |
- return value != 0 && (IsPowerOf2(value) || IsPowerOf2(-value)); |
+ return IsPowerOf2(value) || IsPowerOf2(-value); |
} |
DECLARE_ABSTRACT_INSTRUCTION(BinaryOperation) |