throw new RuntimeException("Encountered " + yieldSites.size() + " yield sites. Convert the yield to a call by converting the closure into a dummy method (have to convert all frame vars to call arguments, or at least convert the frame into a call arg");
if (!(closureArg instanceof MetaObject))
throw new RuntimeException("Encountered a dynamic closure arg. Cannot inline it here! Convert the yield to a call by converting the closure into a dummy method (have to convert all frame vars to call arguments, or at least convert the frame into a call arg");
Tuple t = (Tuple)yieldSites.get(0);
inlineClosureAtYieldSite(ii, (IRClosure)((MetaObject)closureArg).scope, (BasicBlock)t.a, (YieldInstr)t.b);
}
// Update the bb array
setupFallThruMap();