forked from OSchip/llvm-project
Prevent unused warning in non-assert builds (introduced in r310014).
llvm-svn: 310022
This commit is contained in:
parent
56b03d0dd6
commit
3f47a5c054
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue