[llvm] r190566 - Fix comment to match what the assert actually enforces

Matt Arsenault Matthew.Arsenault at amd.com
Wed Sep 11 18:07:54 PDT 2013


Author: arsenm
Date: Wed Sep 11 20:07:54 2013
New Revision: 190566

URL: http://llvm.org/viewvc/llvm-project?rev=190566&view=rev
Log:
Fix comment to match what the assert actually enforces

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

Modified: llvm/trunk/include/llvm/IR/Operator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Operator.h?rev=190566&r1=190565&r2=190566&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Operator.h (original)
+++ llvm/trunk/include/llvm/IR/Operator.h Wed Sep 11 20:07:54 2013
@@ -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()) &&





More information about the llvm-commits mailing list