projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276867c
)
Fix logic error in is_builtin_expect() introduced in r24902.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 31 Dec 2008 20:43:53 +0000
(20:43 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 31 Dec 2008 20:43:53 +0000
(20:43 +0000)
[r25011]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
f9bab41
..
be26030
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3425,7
+3425,7
@@
static bool is_builtin_expect(const expression_t *expression)
if (function->kind != EXPR_REFERENCE)
return false;
reference_expression_t *ref = &function->reference;
- if (ref->entity->kind
== ENTITY_FUNCTION &&
+ if (ref->entity->kind
!= ENTITY_FUNCTION ||
ref->entity->function.btk != bk_gnu_builtin_expect)
return false;