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.
1 parent c987950 commit 36cadb6Copy full SHA for 36cadb6
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