From 750ec004365570089229169142b37934135aba41 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 8 Jan 2008 00:52:29 +0000 Subject: [PATCH] Silence warning about loss of precision. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45731 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86JITInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index dd451176568..de7a8e45fbd 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/lib/Target/X86/X86JITInfo.cpp @@ -387,7 +387,7 @@ void *X86JITInfo::emitGlobalValueLazyPtr(void *GV, MachineCodeEmitter &MCE) { MCE.emitWordLE(((unsigned *)&GV)[1]); #else MCE.startFunctionStub(4, 4); - MCE.emitWordLE((unsigned)GV); + MCE.emitWordLE((intptr_t)GV); #endif return MCE.finishFunctionStub(0); }