From 3a0d95404de6b0a97994658d0cd3b59180504b4f Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 7 Aug 2008 15:23:36 +0000 Subject: [PATCH] Fix typo. [r21052] --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index b4094a7..7a0ca4d 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -1022,7 +1022,7 @@ static ir_entity *get_function_entity(declaration_t *declaration) if (is_inline && storage_class == STORAGE_CLASS_NONE && has_body) { set_entity_visibility(entity, visibility_external_visible); } else if (storage_class == STORAGE_CLASS_STATIC || is_inline) { - if (has_body) { + if (!has_body) { /* this entity was declared, but is defined nowhere */ set_entity_peculiarity(entity, peculiarity_description); } -- 2.20.1