projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca71f0
)
bearch: Assert, instead of test, that the register requirement is not arch_register_r...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 24 Nov 2012 22:17:18 +0000
(23:17 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 24 Nov 2012 22:17:18 +0000
(23:17 +0100)
If it is, something is very wrong.
ir/be/bearch.c
patch
|
blob
|
history
diff --git
a/ir/be/bearch.c
b/ir/be/bearch.c
index
1e3bc2b
..
75681c0
100644
(file)
--- a/
ir/be/bearch.c
+++ b/
ir/be/bearch.c
@@
-221,10
+221,9
@@
void arch_add_irn_flags(ir_node *node, arch_irn_flags_t flags)
bool arch_reg_is_allocatable(const arch_register_req_t *req,
const arch_register_t *reg)
{
+ assert(req->type != arch_register_req_type_none);
if (reg->type & arch_register_type_joker)
return true;
- if (req->type == arch_register_req_type_none)
- return false;
if (req->type & arch_register_req_type_limited) {
if (reg->reg_class != req->cls)
return false;