• Matthew Dempsky's avatar
    cmd/compile: small cleanup to syslook calls · 7f13fbf7
    Matthew Dempsky authored
    Passing copy==1 to syslook is only necessary to support subsequent
    calls to substArgTypes.  typ2Itab and concatstring* don't have "any"
    parameters, so no point in deep copying their function signatures at
    every call site.
    
    For a couple other syslook calls (makemap and conv[IET]2[IET]), move
    them closer to their corresponding substArgTypes calls so it's easier
    to see that all syslook(fn, 1) calls are necessary.
    
    Change-Id: I4a0588ab2b8b5b8ce7a0a44b24c8cf8fda489af6
    Reviewed-on: https://go-review.googlesource.com/20215
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    7f13fbf7
walk.go 86.2 KB