From 13a5b790736bf6ffb6be73427d5ec791fcd8d427 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 27 Apr 2020 15:51:37 -0700 Subject: [PATCH] [llvm/DebugInfo] Fix typo in DWARFTypeUnit ctor call We were passing the AppleObjCSection instead of the AddrSection. Maybe the API changed and this remained unnoticed because the types are the same, or maybe it's just a typo. --- lib/DebugInfo/DWARF/DWARFVerifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/lib/DebugInfo/DWARF/DWARFVerifier.cpp index 74584712ad3..310162730e8 100644 --- a/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ b/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -305,7 +305,7 @@ unsigned DWARFVerifier::verifyUnitSection(const DWARFSection &S, Unit = TypeUnitVector.addUnit(std::make_unique( DCtx, S, Header, DCtx.getDebugAbbrev(), &DObj.getRangesSection(), &DObj.getLocSection(), DObj.getStrSection(), - DObj.getStrOffsetsSection(), &DObj.getAppleObjCSection(), + DObj.getStrOffsetsSection(), &DObj.getAddrSection(), DObj.getLineSection(), DCtx.isLittleEndian(), false, TypeUnitVector)); break; @@ -319,7 +319,7 @@ unsigned DWARFVerifier::verifyUnitSection(const DWARFSection &S, Unit = CompileUnitVector.addUnit(std::make_unique( DCtx, S, Header, DCtx.getDebugAbbrev(), &DObj.getRangesSection(), &DObj.getLocSection(), DObj.getStrSection(), - DObj.getStrOffsetsSection(), &DObj.getAppleObjCSection(), + DObj.getStrOffsetsSection(), &DObj.getAddrSection(), DObj.getLineSection(), DCtx.isLittleEndian(), false, CompileUnitVector)); break;