aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-12 01:07:54 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-12 01:07:54 +0000
commitb95237f10cf718c63b153e362b3b5b548ce50698 (patch)
tree1713e872ddbc7d09f8abd2d8f7be3c019dba4013
parent6fc4f7e2b67f89913e6b94888577a09918187e7d (diff)
downloadexternal_llvm-b95237f10cf718c63b153e362b3b5b548ce50698.zip
external_llvm-b95237f10cf718c63b153e362b3b5b548ce50698.tar.gz
external_llvm-b95237f10cf718c63b153e362b3b5b548ce50698.tar.bz2
Fix comment to match what the assert actually enforces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190566 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/IR/Operator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IR/Operator.h b/include/llvm/IR/Operator.h
index 13ab72c..5b9bee7 100644
--- a/include/llvm/IR/Operator.h
+++ b/include/llvm/IR/Operator.h
@@ -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()) &&