// So, we could return 'null', but it creates problems for IR generation. So, for this scenario,
// we simply create a dummy var at depth 0 (meaning, it is local to the closure itself) and return it.
LocalVariable blockVar = findExistingLocalVariable(Variable.BLOCK, getNestingDepth());
if (blockVar != null) {
// Create a copy of the variable usable at the right depth
if (blockVar.getScopeDepth() != getNestingDepth()) blockVar = blockVar.cloneForDepth(getNestingDepth());
} else {
IRScope s = this;
while (s instanceof IRClosure) s = s.getLexicalParent();
if (s instanceof IRMethod) {