Fixed assertion on C/gnu99/attributes5.c
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Mon, 6 Apr 2009 11:49:23 +0000 (11:49 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Mon, 6 Apr 2009 11:49:23 +0000 (11:49 +0000)
[r25794]

attribute.c

index 1a868d6..b01f8b6 100644 (file)
@@ -358,7 +358,7 @@ void handle_entity_attributes(const attribute_t *attributes, entity_t *entity)
 
 static type_t *change_calling_convention(type_t *type, cc_kind_t cconv)
 {
-       if (!is_type_function(type)) {
+       if (is_typeref(type) || !is_type_function(type)) {
                return type;
        }