[llvm-commits] [llvm] r76464 - /llvm/trunk/include/llvm/Operator.h

Dan Gohman gohman at apple.com
Mon Jul 20 13:32:43 PDT 2009


Author: djg
Date: Mon Jul 20 15:32:43 2009
New Revision: 76464

URL: http://llvm.org/viewvc/llvm-project?rev=76464&view=rev
Log:
Clarify that OverflowingBinaryOperator is not used for SDiv, even though
SDiv is a binary operation that can overflow.

Modified:
    llvm/trunk/include/llvm/Operator.h

Modified: llvm/trunk/include/llvm/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Operator.h?rev=76464&r1=76463&r2=76464&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Operator.h (original)
+++ llvm/trunk/include/llvm/Operator.h Mon Jul 20 15:32:43 2009
@@ -61,7 +61,8 @@
 };
 
 /// 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:





More information about the llvm-commits mailing list