diff --git a/src/cmd/6g/obj.c b/src/cmd/6g/obj.c index 38ba1ad5825..b04a440c0dc 100644 --- a/src/cmd/6g/obj.c +++ b/src/cmd/6g/obj.c @@ -540,6 +540,9 @@ gentramp(Type *t, Sig *b) fatal("gentramp"); out: + if(d == 0) + return; + // print("gentramp %d\n", d); // print(" t = %lT\n", t); // print(" name = %s\n", b->name);