projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea34a1
)
Silence -pedantic warning.
author
Chris Lattner
<sabre@nondot.org>
Thu, 1 Jun 2006 17:13:10 +0000
(17:13 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 1 Jun 2006 17:13:10 +0000
(17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28630
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86JITInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86JITInfo.cpp
b/lib/Target/X86/X86JITInfo.cpp
index 6f83651c1842dc40759a3e9cd3994ca5446feea6..87fca4381ce91ab69a9f5d7254f64424172bf22d 100644
(file)
--- a/
lib/Target/X86/X86JITInfo.cpp
+++ b/
lib/Target/X86/X86JITInfo.cpp
@@
-167,7
+167,9
@@
X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
}
void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
- if (Fn != (void*)X86CompilationCallback) {
+ // Note, we cast to intptr_t here to silence a -pedantic warning that
+ // complains about casting a function pointer to a normal pointer.
+ if (Fn != (void*)(intptr_t)X86CompilationCallback) {
MCE.startFunctionStub(5);
MCE.emitByte(0xE9);
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);