Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(954)

Unified Diff: src/cmd/8g/gsubr.c

Issue 6542058: code review 6542058: cmd/gc: fix use of nil interface, slice (Closed)
Patch Set: diff -r 5a92a8a1509d https://code.google.com/p/go/ Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/8g/cgen.c ('k') | test/fixedbugs/bug444.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/8g/gsubr.c
===================================================================
--- a/src/cmd/8g/gsubr.c
+++ b/src/cmd/8g/gsubr.c
@@ -1732,6 +1732,12 @@
case AMOVL:
if(f != N && t != N && samaddr(f, t))
return nil;
+ break;
+
+ case ALEAL:
+ if(f != N && isconst(f, CTNIL))
+ fatal("gins LEAQ nil %T", f->type);
+ break;
}
memset(&af, 0, sizeof af);
« no previous file with comments | « src/cmd/8g/cgen.c ('k') | test/fixedbugs/bug444.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b