Skip to content

Commit 735edd9

Browse files
committed
[Object][COFF] Use uintptr_t for getRvaPtr call in Arm64XRelocRef::validate.
Fixes #97229.
1 parent f9060f1 commit 735edd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Object/COFFObjectFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ Error Arm64XRelocRef::validate(const COFFObjectFile *Obj) const {
21232123
"Unaligned ARM64X relocation RVA (" +
21242124
Twine(getRVA()) + ")");
21252125
if (Header->PageRVA) {
2126-
uint64_t IntPtr;
2126+
uintptr_t IntPtr;
21272127
return Obj->getRvaPtr(getRVA() + getSize(), IntPtr, "ARM64X reloc");
21282128
}
21292129
return Error::success();

0 commit comments

Comments
 (0)