Commit e39dc768 authored by Russ Cox's avatar Russ Cox

gc: fix crash when using -u

R=ken2
CC=golang-dev
https://golang.org/cl/4278056
parent 90f3f917
...@@ -1311,7 +1311,7 @@ ret: ...@@ -1311,7 +1311,7 @@ ret:
// TODO(rsc): should not need to check importpkg, // TODO(rsc): should not need to check importpkg,
// but reflect mentions unsafe.Pointer. // but reflect mentions unsafe.Pointer.
if(safemode && !incannedimport && !importpkg && t->etype == TUNSAFEPTR) if(safemode && !incannedimport && !importpkg && t && t->etype == TUNSAFEPTR)
yyerror("cannot use unsafe.Pointer"); yyerror("cannot use unsafe.Pointer");
evconst(n); evconst(n);
......
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