Commit 01512b3e authored by Russ Cox's avatar Russ Cox

cmd/internal/gc: add -d disablenil debug option to turn off nil checks

Change-Id: I18f2e2ee141ebb65a8579ee1e440cb9c2069ef86
Reviewed-on: https://go-review.googlesource.com/7626Reviewed-by: default avatarRob Pike <r@golang.org>
Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 13f9c8b0
...@@ -43,10 +43,10 @@ var goroot string ...@@ -43,10 +43,10 @@ var goroot string
var debugtab = []struct { var debugtab = []struct {
name string name string
val *int val *int
}{struct { }{
name string {"nil", &Debug_checknil},
val *int {"disablenil", &Disable_checknil},
}{"nil", &Debug_checknil}} }
// Our own isdigit, isspace, isalpha, isalnum that take care // Our own isdigit, isspace, isalpha, isalnum that take care
// of EOF and other out of range arguments. // of EOF and other out of range arguments.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment