Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewTailCallStmt (0.27 sec)

  1. src/cmd/compile/internal/ssagen/abi.go

    	}
    
    	var tail ir.Node
    	call := ir.NewCallExpr(base.Pos, ir.OCALL, f.Nname, nil)
    	call.Args = ir.ParamNames(fn.Type())
    	call.IsDDD = fn.Type().IsVariadic()
    	tail = call
    	if tailcall {
    		tail = ir.NewTailCallStmt(base.Pos, call)
    	} else if fn.Type().NumResults() > 0 {
    		n := ir.NewReturnStmt(base.Pos, nil)
    		n.Results = []ir.Node{call}
    		tail = n
    	}
    	fn.Body.Append(tail)
    
    	typecheck.FinishFuncBody()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top