]> granicus.if.org Git - llvm/commitdiff
Fix unused variable warning in Release builds. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 1 Dec 2016 19:10:10 +0000 (19:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 1 Dec 2016 19:10:10 +0000 (19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288401 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DIE.cpp

index 6e9834a7cf0e556f89bbf30b7a6b3e5f2d956acf..ef1e41f4e3dc73b9ea79db454ffa4983aa31ddcb 100644 (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 {