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
1158173a
Commit
1158173a
authored
Sep 25, 2015
by
Christoph Mallon
Browse files
ia32: Remove unnecessary checks.
tarval_convert_to() does not return tv_unknown or null pointer.
parent
ed9d4b91
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
1158173a
...
...
@@ -442,11 +442,8 @@ end:
return
res
;
}
else
{
/* non-float mode */
tv
=
tarval_convert_to
(
tv
,
ia32_mode_gp
);
if
(
tv
==
get_tarval_bad
()
||
tv
==
get_tarval_unknown
()
||
tv
==
NULL
)
{
if
(
tv
==
get_tarval_bad
())
panic
(
"couldn't convert constant tarval (%+F)"
,
node
);
}
x86_imm32_t
imm
=
{
.
offset
=
get_tarval_long
(
tv
)
};
ir_node
*
cnst
=
new_bd_ia32_Const
(
dbgi
,
block
,
&
imm
);
...
...
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