Skip to content

Commit 19c11d6

Browse files
author
Peter Goodman
authored
Remove an overly strict DCHECK_LE that actually isn't necessary, as the subsequent code is sufficiently defensive. (#485)
1 parent 74c9490 commit 19c11d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/BC/Util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,6 @@ llvm::Value *BuildPointerToOffset(llvm::IRBuilder<> &ir, llvm::Value *ptr,
20002000

20012001
if (const auto diff = dest_elem_offset - reached_disp; diff) {
20022002
DCHECK_LT(diff, dest_elem_offset);
2003-
DCHECK_LE(diff, dl.getTypeAllocSize(indexed_type));
20042003
const auto i8_type = llvm::Type::getInt8Ty(context);
20052004
const auto i8_ptr_type =
20062005
llvm::PointerType::getInt8PtrTy(context, ptr_addr_space);

0 commit comments

Comments
 (0)