Fix comment to match what the assert actually enforces

llvm-svn: 190566
This commit is contained in:
Matt Arsenault 2013-09-12 01:07:54 +00:00
parent bc08ddba58
commit a9e7c7abdc
1 changed files with 2 additions and 2 deletions

View 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()) &&