[llvm] 735edd9 - [Object][COFF] Use uintptr_t for getRvaPtr call in Arm64XRelocRef::validate.

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 13:24:37 PDT 2024


Author: Jacek Caban
Date: 2024-08-06T22:21:27+02:00
New Revision: 735edd98d732a492d9c55f137ee50d20e32444d1

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

LOG: [Object][COFF] Use uintptr_t for getRvaPtr call in Arm64XRelocRef::validate.

Fixes #97229.

Added: 
    

Modified: 
    llvm/lib/Object/COFFObjectFile.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 4b6dd1a19d5a5..34347e5681358 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -2123,7 +2123,7 @@ Error Arm64XRelocRef::validate(const COFFObjectFile *Obj) const {
                              "Unaligned ARM64X relocation RVA (" +
                                  Twine(getRVA()) + ")");
   if (Header->PageRVA) {
-    uint64_t IntPtr;
+    uintptr_t IntPtr;
     return Obj->getRvaPtr(getRVA() + getSize(), IntPtr, "ARM64X reloc");
   }
   return Error::success();


        


More information about the llvm-commits mailing list