Skip to content

Commit

Permalink
Use jitlink::Section::blocks::empty instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bzEq committed Oct 13, 2023
1 parent fd3a992 commit 7174086
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ class ELFJITLinker_ppc64 : public JITLinker<ELFJITLinker_ppc64<Endianness>> {

if (Section *TOCSection = G.findSectionByName(
ppc64::TOCTableManager<Endianness>::getSectionName())) {
assert(!TOCSection->empty() && "TOC section should have reserved an "
"entry for containing the TOC base");
assert(!TOCSection->blocks().empty() &&
"TOC section should have reserved an "
"entry for containing the TOC base");

SectionRange SR(*TOCSection);
orc::ExecutorAddr TOCBaseAddr(SR.getFirstBlock()->getAddress() +
Expand Down

0 comments on commit 7174086

Please sign in to comment.