[llvm] r288401 - Fix unused variable warning in Release builds. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 11:10:10 PST 2016


Author: d0k
Date: Thu Dec  1 13:10:10 2016
New Revision: 288401

URL: http://llvm.org/viewvc/llvm-project?rev=288401&view=rev
Log:
Fix unused variable warning in Release builds. NFC.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp?rev=288401&r1=288400&r2=288401&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp Thu Dec  1 13:10:10 2016
@@ -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 {




More information about the llvm-commits mailing list