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
7e9df5c3
Commit
7e9df5c3
authored
Jul 25, 2003
by
Götz Lindenmaier
Browse files
more verbose assertion
[r1565]
parent
718be538
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/cgana.c
View file @
7e9df5c3
...
...
@@ -69,9 +69,14 @@ entity *get_inherited_methods_implementation(entity *inh_meth) {
if
(
get_irn_op
(
addr
)
==
op_Const
)
{
impl_meth
=
tarval_to_entity
(
get_Const_tarval
(
addr
));
}
else
{
assert
(
0
&&
"Complex constant values not supported -- adress of method should be straight constant!"
);
}
if
(
impl_meth
&&
(
get_entity_peculiarity
(
impl_meth
)
!=
existent
))
{
printf
(
"this_meth: "
);
DDMEO
(
inh_meth
);
printf
(
"impl meth: "
);
DDMEO
(
impl_meth
);
assert
(
!
impl_meth
||
get_entity_peculiarity
(
impl_meth
)
==
existent
);
}
assert
(
!
impl_meth
||
get_entity_peculiarity
(
impl_meth
)
==
existent
);
return
impl_meth
?
impl_meth
:
inh_meth
;
}
...
...
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