[compiler-rt] cbd7bc6 - [ORC-RT] Remove wrong getValue of ExecutorAddrDiff.

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 20:22:22 PDT 2022


Author: jacquesguan
Date: 2022-09-16T11:18:27+08:00
New Revision: cbd7bc66c4f7988724d15bd9be465dbd35969281

URL: https://github.com/llvm/llvm-project/commit/cbd7bc66c4f7988724d15bd9be465dbd35969281
DIFF: https://github.com/llvm/llvm-project/commit/cbd7bc66c4f7988724d15bd9be465dbd35969281.diff

LOG: [ORC-RT] Remove wrong getValue of ExecutorAddrDiff.

Added: 
    

Modified: 
    compiler-rt/lib/orc/elfnix_platform.cpp

Removed: 
    


################################################################################
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()


        


More information about the llvm-commits mailing list