Permalink
Browse files

Small simplification

  • Loading branch information...
1 parent 3d7e985 commit 29ebe448b0c079bac2943026cd0e5f81a0d56e20 @nickg committed Dec 27, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/sem.c
View
@@ -840,9 +840,7 @@ static void sem_declare_predefined_ops(tree_t decl)
break;
}
- bool array_attrs = ((kind == T_CARRAY)
- || (kind == T_SUBTYPE && type_is_array(t)));
- if (array_attrs) {
+ if (type_is_array(t)) {
ident_t length_i = ident_new("LENGTH");
tree_add_attr_tree(decl, length_i,
sem_builtin_fn(length_i,

0 comments on commit 29ebe44

Please sign in to comment.