diff --git a/lib/BC/Util.cpp b/lib/BC/Util.cpp index 3b547d74d..9d29120cc 100644 --- a/lib/BC/Util.cpp +++ b/lib/BC/Util.cpp @@ -2000,7 +2000,6 @@ llvm::Value *BuildPointerToOffset(llvm::IRBuilder<> &ir, llvm::Value *ptr, if (const auto diff = dest_elem_offset - reached_disp; diff) { DCHECK_LT(diff, dest_elem_offset); - DCHECK_LE(diff, dl.getTypeAllocSize(indexed_type)); const auto i8_type = llvm::Type::getInt8Ty(context); const auto i8_ptr_type = llvm::PointerType::getInt8PtrTy(context, ptr_addr_space);