From 7174086086df37156c166b084c5e1da6cef2e3f1 Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Fri, 13 Oct 2023 08:34:42 +0800 Subject: [PATCH] Use jitlink::Section::blocks::empty instead --- .../llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interpreter/llvm-project/llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp b/interpreter/llvm-project/llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp index ad3d56e70206e..7e8a8a0be0cb1 100644 --- a/interpreter/llvm-project/llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp +++ b/interpreter/llvm-project/llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp @@ -422,8 +422,9 @@ class ELFJITLinker_ppc64 : public JITLinker> { if (Section *TOCSection = G.findSectionByName( ppc64::TOCTableManager::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() +