Fix unused variable warning in Release builds. NFC.

llvm-svn: 288401
This commit is contained in:
Benjamin Kramer 2016-12-01 19:10:10 +00:00
parent 9676d5ed59
commit 6a8704c1c0

View File

@ -122,7 +122,7 @@ DIEAbbrev DIE::generateAbbrev() const {
unsigned DIE::getDebugSectionOffset() const {
const DIEUnit *Unit = getUnit();
assert(Unit && "DIE must be owned by a DIEUnit to get its absolute offset");
return getUnit()->getDebugSectionOffset() + getOffset();
return Unit->getDebugSectionOffset() + getOffset();
}
const DIE *DIE::getUnitDie() const {