Commit 8f80bd89 by Ian Lance Taylor

cmd/vet: use default compiler when determining type sizes

    
    Fixes a segfault running vet on alpha.
    
    Patch by Uros Bizjak.
    
    Reviewed-on: https://go-review.googlesource.com/c/152437

From-SVN: r266781
parent 9e0b0ec3
9e016dfe198152f870005ac844fe22c02e5349e3
7259d9a403db2784c7d03239c6a50e730062fc61
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
......@@ -310,4 +310,4 @@ func (f *File) matchStructArgType(t printfArgType, typ *types.Struct, arg ast.Ex
return true
}
var archSizes = types.SizesFor("gc", build.Default.GOARCH)
var archSizes = types.SizesFor(build.Default.Compiler, build.Default.GOARCH)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment