Permalink
Browse files

Remove unnecessary call to sem_check_subtype

  • Loading branch information...
1 parent 23c9b51 commit 76e6f22df7a87b2c35375e34e009e8b257652de9 @nickg committed Jun 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/sem.c
View
@@ -1340,8 +1340,7 @@ static void sem_add_attributes(tree_t decl)
static tree_t sem_default_value(type_t type)
{
- type_t base;
- (void)sem_check_subtype(NULL, type, &base);
+ type_t base = type_base_recur(type);
switch (type_kind(base)) {
case T_UARRAY:

0 comments on commit 76e6f22

Please sign in to comment.