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
879f5c59
Commit
879f5c59
authored
Oct 01, 2008
by
Andreas Zwinkau
Browse files
Panic if proj num is unexpected
[r22394]
parent
53f1231c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_finish.c
View file @
879f5c59
...
...
@@ -387,7 +387,8 @@ static void assure_should_be_same_requirements(ia32_code_gen_t *cg,
* register -> base or index is broken then.
* Solution: Turn back this address mode into explicit Load + Operation.
*/
static
void
fix_am_source
(
ir_node
*
irn
,
void
*
env
)
{
static
void
fix_am_source
(
ir_node
*
irn
,
void
*
env
)
{
ia32_code_gen_t
*
cg
=
env
;
const
arch_env_t
*
arch_env
=
cg
->
arch_env
;
ir_node
*
base
;
...
...
@@ -489,6 +490,8 @@ static void fix_am_source(ir_node *irn, void *env) {
}
else
if
(
pn
==
pn_ia32_mem
)
{
set_Proj_pred
(
node
,
load
);
set_Proj_proj
(
node
,
pnmem
);
}
else
{
panic
(
"Unexpected Proj"
);
}
}
set_irn_mode
(
irn
,
mode_Iu
);
...
...
Write
Preview
Supports
Markdown
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