From cbd7bc66c4f7988724d15bd9be465dbd35969281 Mon Sep 17 00:00:00 2001 From: jacquesguan Date: Fri, 16 Sep 2022 11:18:27 +0800 Subject: [PATCH] [ORC-RT] Remove wrong getValue of ExecutorAddrDiff. --- compiler-rt/lib/orc/elfnix_platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/orc/elfnix_platform.cpp b/compiler-rt/lib/orc/elfnix_platform.cpp index 94099219afc3..771e21d72e2d 100644 --- a/compiler-rt/lib/orc/elfnix_platform.cpp +++ b/compiler-rt/lib/orc/elfnix_platform.cpp @@ -40,7 +40,7 @@ namespace { Error validatePointerSectionExtent(const char *SectionName, const ExecutorAddrRange &SE) { - if (SE.size().getValue() % sizeof(uintptr_t)) { + if (SE.size() % sizeof(uintptr_t)) { std::ostringstream ErrMsg; ErrMsg << std::hex << "Size of " << SectionName << " 0x" << SE.Start.getValue() << " -- 0x" << SE.End.getValue()