We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 984d08b + 36cadb6 commit c045845Copy full SHA for c045845
llvm/lib/MC/MCAssembler.cpp
@@ -353,10 +353,9 @@ const MCSymbol *MCAssembler::getBaseSymbol(const MCSymbol &Symbol) const {
353
}
354
355
uint64_t MCAssembler::getSectionAddressSize(const MCSection &Sec) const {
356
- assert(HasLayout);
357
- // The size is the last fragment's end offset.
358
const MCFragment &F = *Sec.curFragList()->Tail;
359
- return getFragmentOffset(F) + computeFragmentSize(F);
+ assert(HasLayout && F.getKind() == MCFragment::FT_Data);
+ return getFragmentOffset(F) + F.getSize();
360
361
362
uint64_t MCAssembler::getSectionFileSize(const MCSection &Sec) const {
0 commit comments