use of org.robovm.compiler.llvm.TailCall in project robovm by robovm.
the class Functions method tailcall.
public static Value tailcall(Function currentFunction, Value fn, Value... args) {
Variable result = null;
Type returnType = ((FunctionType) fn.getType()).getReturnType();
if (returnType != VOID) {
result = currentFunction.newVariable(returnType);
}
currentFunction.add(new TailCall(result, fn, args));
return result == null ? null : result.ref();
}
Aggregations