Permalink
Browse files

Fix GC error with reading the method name

  • Loading branch information...
evanphx committed Feb 3, 2012
1 parent b087391 commit 4e42d21d19b3a619085028f6fd71e7eb8359ad00
Showing with 3 additions and 2 deletions.
  1. +3 −2 vm/llvm/jit_compiler.cpp
View
@@ -58,6 +58,8 @@ namespace jit {
if(!mci_) {
if(!function_) return NULL;
+ std::string name = ls->symbol_debug_str(info()->method()->name());
+
if(indy) ls->shared().gc_independent(ls);
if(ls->jit_dump_code() & cSimple) {
llvm::outs() << "[[[ LLVM Simple IR ]]]\n";
@@ -106,8 +108,7 @@ namespace jit {
ls->passes()->run(*function_);
if(ls->jit_dump_code() & cOptimized) {
- llvm::outs() << "[[[ LLVM Optimized IR: "
- << ls->symbol_debug_str(info()->method()->name()) << " ]]]\n";
+ llvm::outs() << "[[[ LLVM Optimized IR: " << name << " ]]]\n";
llvm::outs() << *function_ << "\n";
}

0 comments on commit 4e42d21

Please sign in to comment.