Permalink
Browse files

Remove useless check on call_frame->stk array

  • Loading branch information...
1 parent cc1498f commit b6e028afc01d58af4e16fcddf8113be422750c87 @dbussink dbussink committed Feb 9, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/gc/gc.cpp
View
@@ -205,7 +205,7 @@ namespace rubinius {
call_frame->compiled_code = (CompiledCode*)mark_object(call_frame->compiled_code);
}
- if(call_frame->compiled_code && call_frame->stk) {
+ if(call_frame->compiled_code) {
native_int stack_size = call_frame->compiled_code->stack_size()->to_native();
for(native_int i = 0; i < stack_size; i++) {
Object* obj = call_frame->stk[i];
@@ -285,7 +285,7 @@ namespace rubinius {
call_frame->compiled_code->validate();
}
- if(call_frame->compiled_code && call_frame->stk) {
+ if(call_frame->compiled_code) {
native_int stack_size = call_frame->compiled_code->stack_size()->to_native();
for(native_int i = 0; i < stack_size; i++) {
Object* obj = call_frame->stk[i];

0 comments on commit b6e028a

Please sign in to comment.