Skip to content

Commit a119f88

Browse files
committed
go/importer: make For("gccgo", nil) not panic
Apparently we forgot to test this. Fixes #15092 Change-Id: I33d4fef0f659dfbdfc1ebf8401e96610c8215592 Reviewed-on: https://go-review.googlesource.com/21860 Reviewed-by: Robert Griesemer <[email protected]>
1 parent 501ddf7 commit a119f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/importer/importer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func For(compiler string, lookup Lookup) types.Importer {
3131
return make(gcimports)
3232

3333
case "gccgo":
34-
if lookup == nil {
34+
if lookup != nil {
3535
panic("gccgo importer for custom import path lookup not yet implemented")
3636
}
3737

0 commit comments

Comments
 (0)