Permalink
Browse files

Merge pull request #2234 from ryoqun/jit-scope-bug

Use correct scope by setting CompiledCode::scope
  • Loading branch information...
2 parents 7d8d6c8 + d07df0e commit baab48d71c8c1d07c71c8e40c9c994b7309626d4 @dbussink dbussink committed Mar 25, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 vm/llvm/jit_util.cpp
View
@@ -237,9 +237,7 @@ extern "C" {
CompiledCode* code = as<CompiledCode>(_lit);
// TODO: We don't need to be doing this everytime.
- if(code->scope()->nil_p()) {
- code->scope(state, call_frame->constant_scope());
- }
+ code->scope(state, call_frame->constant_scope());
MachineCode* mcode = call_frame->compiled_code->machine_code();
GCTokenImpl gct;

0 comments on commit baab48d

Please sign in to comment.