Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
undingen committed Jun 27, 2016
1 parent a3df3d1 commit 09d5077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/objmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5209,7 +5209,9 @@ Box* runtimeCallInternal(Box* obj, CallRewriteArgs* rewrite_args, ArgPassSpec ar
if (rewrite_args && !rewrite_args->func_guarded) {
rewrite_args->obj->addGuard((intptr_t)f);
rewrite_args->func_guarded = true;
rewrite_args->rewriter->addDependenceOn(f->dependent_ics);
// callFunc will add the invalidator
if (callable != &callFunc<S>)
rewrite_args->rewriter->addDependenceOn(f->dependent_ics);
}

KEEP_ALIVE(f);
Expand Down

0 comments on commit 09d5077

Please sign in to comment.