]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/gc: add -d disablenil debug option to turn off nil checks
authorRuss Cox <rsc@golang.org>
Sun, 8 Mar 2015 22:46:28 +0000 (18:46 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 17 Mar 2015 00:33:46 +0000 (00:33 +0000)
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>
src/cmd/internal/gc/lex.go

index 10964e49137265ab6520b0a6bcf396cf61658907..7470a1ff3a1e38a64940d1217b875ac3c3690ed5 100644 (file)
@@ -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.