Prevent unused warning in non-assert builds (introduced in r310014).

llvm-svn: 310022
This commit is contained in:
Daniel Jasper 2017-08-04 05:05:29 +00:00
parent 56b03d0dd6
commit 3f47a5c054
1 changed files with 2 additions and 2 deletions

View File

@ -678,8 +678,8 @@ DIExpression *DIBuilder::createFragmentExpression(unsigned OffsetInBits,
if (Op.getOp() == dwarf::DW_OP_LLVM_fragment) {
// Make the new offset point into the existing fragment.
uint64_t FragmentOffsetInBits = Op.getArg(0);
uint64_t FragmentSizeInBits = Op.getArg(1);
assert((OffsetInBits + SizeInBits <= FragmentSizeInBits) &&
// Op.getArg(1) is FragmentSizeInBits.
assert((OffsetInBits + SizeInBits <= Op.getArg(1)) &&
"new fragment outside of original fragment");
OffsetInBits += FragmentOffsetInBits;
break;