Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
068a788a
Commit
068a788a
authored
Jan 31, 2016
by
Matthias Braun
Browse files
ia32: Fix warning
parent
01fea041
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
068a788a
...
...
@@ -3429,12 +3429,13 @@ static unsigned bemit_relocation_callback(char *const buffer,
return
4
;
}
uint32_t
const
entity_addr
=
(
uint32_t
)
be_jit_get_entity_addr
(
entity
);
uint32_t
const
entity_addr
=
(
uint32_t
)(
intptr_t
)
be_jit_get_entity_addr
(
entity
);
if
(
entity_addr
==
~
0u
)
panic
(
"Could not resolve address of entity %+F"
,
entity
);
uint32_t
addr
=
entity_addr
+
offset
;
if
(
be_kind
==
X86_IMM_PCREL
)
addr
-=
(
uint32_t
)
buffer
;
addr
-=
(
uint32_t
)
(
intptr_t
)
buffer
;
uint32_t
*
dest
=
(
uint32_t
*
)
buffer
;
*
dest
=
addr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment