Skip to content

Commit

Permalink
Coalesce condition blocks so GCC *5* can understand.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Apr 15, 2016
1 parent 1416394 commit 628fe1c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions machine/instructions.def
Expand Up @@ -1943,12 +1943,6 @@ instruction zsuper(literal) [ block -- value ]
}
}

native_int keywords_position, placeholder_position;
if(mc->keywords) {
placeholder_position = splat_obj ? mc->total_args : mc->total_args - 1;
keywords_position = placeholder_position + 1;
}

Tuple* tup = Tuple::create(state, arg_count);
for(int i = 0; i < mc->total_args; i++) {
tup->put(state, i, scope->get_local(state, i));
Expand All @@ -1963,6 +1957,9 @@ instruction zsuper(literal) [ block -- value ]
}

if(mc->keywords) {
native_int placeholder_position = splat_obj ? mc->total_args : mc->total_args - 1;
native_int keywords_position = placeholder_position + 1;

Object* placeholder = scope->get_local(state, placeholder_position);
Array* ary = Array::create(state, 2);

Expand Down

0 comments on commit 628fe1c

Please sign in to comment.