From 9223822b85080aae1e13ed00d88faaf7eba47d67 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 16 Jan 2012 09:31:10 +0000 Subject: [PATCH] =?UTF-8?q?A=20fix=20for=20the=20previous=20commit:=20"int?= =?UTF-8?q?eger=20constant=20is=20too=20large=20for=20=E2=80=98long?= =?UTF-8?q?=E2=80=99=20type"=20error=20on=20some=2032-bit=20bots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148232 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp index 9ff95ff8b6e..54cb350552d 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp @@ -183,9 +183,9 @@ void RuntimeDyldELF::resolveX86_64Relocation(StringRef Name, case ELF::R_X86_64_32S: { uint64_t Value = reinterpret_cast(Addr) + RE.Addend; // FIXME: Handle the possibility of this assertion failing - assert((RE.Type == ELF::R_X86_64_32 && !(Value & 0xFFFFFFFF00000000)) || + assert((RE.Type == ELF::R_X86_64_32 && !(Value & 0xFFFFFFFF00000000ULL)) || (RE.Type == ELF::R_X86_64_32S && - (Value & 0xFFFFFFFF00000000) == 0xFFFFFFFF00000000)); + (Value & 0xFFFFFFFF00000000ULL) == 0xFFFFFFFF00000000ULL)); uint32_t TruncatedAddr = (Value & 0xFFFFFFFF); uint32_t *Target = reinterpret_cast(TargetAddr); *Target = TruncatedAddr;