[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp
Misha Brukman
brukman at cs.uiuc.edu
Sun Jun 1 23:15:00 PDT 2003
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.24 -> 1.25
---
Log message:
Eliminated a compiler warning due to casting to a different-sized datatype.
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.24 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.25
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.24 Sun Jun 1 22:28:00 2003
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Sun Jun 1 23:13:58 2003
@@ -70,7 +70,7 @@
void JITResolver::CompilationCallback() {
unsigned *StackPtr = (unsigned*)__builtin_frame_address(0);
- unsigned RetAddr = (unsigned)__builtin_return_address(0);
+ unsigned RetAddr = (unsigned)(intptr_t)__builtin_return_address(0);
assert(StackPtr[1] == RetAddr &&
"Could not find return address on the stack!");
More information about the llvm-commits
mailing list