diff options
author | Russ Cox <rsc@golang.org> | 2013-08-15 14:38:32 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-08-15 14:38:32 -0400 |
commit | 48d5e559013be80e353ea530923ea4afaf9b56c0 (patch) | |
tree | b807836efd88f5d3c7cb12da6eb1c0250150b942 /src/cmd/8g/prog.c | |
parent | 6319f8e1077830445dc3e3303cff1e6da97b3738 (diff) | |
download | go-48d5e559013be80e353ea530923ea4afaf9b56c0.tar.gz |
cmd/gc: &x panics if x does
See golang.org/s/go12nil.
This CL is about getting all the right checks inserted.
A followup CL will add an optimization pass to
remove redundant checks.
R=ken2
CC=golang-dev
https://codereview.appspot.com/12970043
Diffstat (limited to 'src/cmd/8g/prog.c')
-rw-r--r-- | src/cmd/8g/prog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/8g/prog.c b/src/cmd/8g/prog.c index 05d69853b..5fded770e 100644 --- a/src/cmd/8g/prog.c +++ b/src/cmd/8g/prog.c @@ -40,6 +40,7 @@ static ProgInfo progtable[ALAST] = { [APCDATA]= {Pseudo}, [AUNDEF]= {OK}, [AUSEFIELD]= {OK}, + [ACHECKNIL]= {LeftRead}, // NOP is an internal no-op that also stands // for USED and SET annotations, not the Intel opcode. |