File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,7 @@ type Package struct {
373
373
TypesInfo * types.Info
374
374
375
375
// TypesSizes provides the effective size function for types in TypesInfo.
376
+ // It may be nil if, for example, the compiler/architecture pair is not known.
376
377
TypesSizes types.Sizes
377
378
378
379
// forTest is the package under test, if any.
@@ -553,7 +554,7 @@ type loaderPackage struct {
553
554
type loader struct {
554
555
pkgs map [string ]* loaderPackage
555
556
Config
556
- sizes types.Sizes
557
+ sizes types.Sizes // nil => unknown
557
558
parseCache map [string ]* parseValue
558
559
parseCacheMu sync.Mutex
559
560
exportMu sync.Mutex // enforces mutual exclusion of exportdata operations
@@ -1042,7 +1043,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
1042
1043
IgnoreFuncBodies : ld .Mode & NeedDeps == 0 && ! lpkg .initial ,
1043
1044
1044
1045
Error : appendError ,
1045
- Sizes : ld .sizes ,
1046
+ Sizes : ld .sizes , // may be nil
1046
1047
}
1047
1048
if lpkg .Module != nil && lpkg .Module .GoVersion != "" {
1048
1049
typesinternal .SetGoVersion (tc , "go" + lpkg .Module .GoVersion )
You can’t perform that action at this time.
0 commit comments