diff options
author | Keith Randall <khr@golang.org> | 2017-10-03 13:07:07 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2017-10-03 23:21:50 +0000 |
commit | 0a7ef31d7d3e372129a665043c9377dc9e3860ee (patch) | |
tree | 648936744303b53a7800f12e8403609a54cfddd6 /src/runtime/symtab.go | |
parent | d8ff3d592088ef175222dbf69991887f0dd458d6 (diff) | |
download | go-0a7ef31d7d3e372129a665043c9377dc9e3860ee.tar.gz go-0a7ef31d7d3e372129a665043c9377dc9e3860ee.zip |
runtime: give modulesSlice the correct type
No need to type this global as an unsafe.Pointer, we know
what type the referent is.
Change-Id: I7b1374065b53ccf1373754a21d54adbedf1fd587
Reviewed-on: https://go-review.googlesource.com/67990
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Daniel Martà <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/symtab.go')
-rw-r--r-- | src/runtime/symtab.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 0324fb7a1c..542c29ecd6 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -413,7 +413,7 @@ var pinnedTypemaps []map[typeOff]*_type var firstmoduledata moduledata // linker symbol var lastmoduledatap *moduledata // linker symbol -var modulesSlice unsafe.Pointer // see activeModules +var modulesSlice *[]*moduledata // see activeModules // activeModules returns a slice of active modules. // |