Fix unused variable warning in Release builds. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2016-12-01 19:10:10 +00:00
parent 20e1df9682
commit a849108a3e

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 {