[ORC-RT] Remove wrong getValue of ExecutorAddrDiff.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Fri, 16 Sep 2022 03:18:27 +0000 (11:18 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Fri, 16 Sep 2022 03:18:27 +0000 (11:18 +0800)
compiler-rt/lib/orc/elfnix_platform.cpp

index 9409921..771e21d 100644 (file)
@@ -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()