From a4459c55208e53a010a81f8421b9f10906e291d6 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 10 Dec 2008 16:23:29 -0800 Subject: [PATCH] bug R=r OCL=20940 CL=20940 --- src/cmd/6g/obj.c | 3 +++ 1 file changed, 3 insertions(+) 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);