From: Benjamin Kramer Date: Thu, 1 Dec 2016 19:10:10 +0000 (+0000) Subject: Fix unused variable warning in Release builds. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a849108a3e7b1b17e3b3743176cbfaf6c14bb06b;p=llvm 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 --- diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 6e9834a7cf0..ef1e41f4e3d 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -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 {