Fix comment to match what the assert actually enforces
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 12 Sep 2013 01:07:54 +0000 (01:07 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 12 Sep 2013 01:07:54 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190566 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Operator.h

index 13ab72cfefc85be832aea50755cde14b4ef23845..5b9bee7fc60f04348331d2839597399b453b610d 100644 (file)
@@ -439,8 +439,8 @@ public:
   /// offset of this GEP if the GEP is in fact constant. If the GEP is not
   /// all-constant, it returns false and the value of the offset APInt is
   /// undefined (it is *not* preserved!). The APInt passed into this routine
-  /// must be at least as wide as the IntPtr type for the address space of
-  /// the base GEP pointer.
+  /// must be at exactly as wide as the IntPtr type for the address space of the
+  /// base GEP pointer.
   bool accumulateConstantOffset(const DataLayout &DL, APInt &Offset) const {
     assert(Offset.getBitWidth() ==
            DL.getPointerSizeInBits(getPointerAddressSpace()) &&