Clarify that OverflowingBinaryOperator is not used for SDiv, even though
authorDan Gohman <gohman@apple.com>
Mon, 20 Jul 2009 20:32:43 +0000 (20:32 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 20 Jul 2009 20:32:43 +0000 (20:32 +0000)
SDiv is a binary operation that can overflow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76464 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Operator.h

index 5ebb9c0dd0ccc6fc2ece3d49224aadba6aa56003..541f13d859175444e8b66c18457869f9a074ebe8 100644 (file)
@@ -61,7 +61,8 @@ public:
 };
 
 /// OverflowingBinaryOperator - Utility class for integer arithmetic operators
-/// which may exhibit overflow - Add, Sub, and Mul.
+/// which may exhibit overflow - Add, Sub, and Mul. It does not include SDiv,
+/// despite that operator having the potential for overflow.
 ///
 class OverflowingBinaryOperator : public Operator {
 public: