X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast2firm.c;h=be26030b24c95ccc967fea8ff0ccdfc0337efd7d;hb=a07a54193596ec41a927277852a089cc02b31eb6;hp=f9bab41857968fe3c2fdca1ec747b0f8f059935c;hpb=94d190a7624c8ddb2e239ff6bac9b63571098b3c;p=cparser diff --git a/ast2firm.c b/ast2firm.c index f9bab41..be26030 100644 --- 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;