Skip to content

Commit a4ccfd9

Browse files
committed
[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.
1 parent bbaa639 commit a4ccfd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ unsigned DWARFVerifier::verifyUnitSection(const DWARFSection &S,
305305
Unit = TypeUnitVector.addUnit(std::make_unique<DWARFTypeUnit>(
306306
DCtx, S, Header, DCtx.getDebugAbbrev(), &DObj.getRangesSection(),
307307
&DObj.getLocSection(), DObj.getStrSection(),
308-
DObj.getStrOffsetsSection(), &DObj.getAppleObjCSection(),
308+
DObj.getStrOffsetsSection(), &DObj.getAddrSection(),
309309
DObj.getLineSection(), DCtx.isLittleEndian(), false,
310310
TypeUnitVector));
311311
break;
@@ -319,7 +319,7 @@ unsigned DWARFVerifier::verifyUnitSection(const DWARFSection &S,
319319
Unit = CompileUnitVector.addUnit(std::make_unique<DWARFCompileUnit>(
320320
DCtx, S, Header, DCtx.getDebugAbbrev(), &DObj.getRangesSection(),
321321
&DObj.getLocSection(), DObj.getStrSection(),
322-
DObj.getStrOffsetsSection(), &DObj.getAppleObjCSection(),
322+
DObj.getStrOffsetsSection(), &DObj.getAddrSection(),
323323
DObj.getLineSection(), DCtx.isLittleEndian(), false,
324324
CompileUnitVector));
325325
break;

0 commit comments

Comments
 (0)