diff --git a/pkg/lint/load.go b/pkg/lint/load.go
index 1a6bea06..294c545e 100644
--- a/pkg/lint/load.go
+++ b/pkg/lint/load.go
@@ -4,6 +4,7 @@ import (
 	"fmt"
 	"go/build"
 	"go/parser"
+	"go/types"
 	"os"
 	"path/filepath"
 	"strings"
@@ -174,6 +175,9 @@ func loadWholeAppIfNeeded(linters []linter.Config, cfg *config.Config,
 		AllowErrors:         true,                 // Try to analyze partially
 		ParserMode:          parser.ParseComments, // AST will be reused by linters
 		TypeCheckFuncBodies: getTypeCheckFuncBodies(&cfg.Run, linters, pkgProg, log),
+		TypeChecker: types.Config{
+			Sizes: types.SizesFor(build.Default.Compiler, build.Default.GOARCH),
+		},
 	}
 
 	var loaderArgs []string