mirror of https://github.com/golang/go.git
cmd/internal/gc: add -d disablenil debug option to turn off nil checks
Change-Id: I18f2e2ee141ebb65a8579ee1e440cb9c2069ef86 Reviewed-on: https://go-review.googlesource.com/7626 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
13f9c8b08e
commit
01512b3edb
|
|
@ -43,10 +43,10 @@ var goroot string
|
|||
var debugtab = []struct {
|
||||
name string
|
||||
val *int
|
||||
}{struct {
|
||||
name string
|
||||
val *int
|
||||
}{"nil", &Debug_checknil}}
|
||||
}{
|
||||
{"nil", &Debug_checknil},
|
||||
{"disablenil", &Disable_checknil},
|
||||
}
|
||||
|
||||
// Our own isdigit, isspace, isalpha, isalnum that take care
|
||||
// of EOF and other out of range arguments.
|
||||
|
|
|
|||
Loading…
Reference in New Issue