shithub: mc

Download patch

ref: 501c03fca3a77243ae2e7415a199b08e806c96b2
parent: 11f9444f151e18547c277027ff39f81c5976318f
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Sep 16 04:35:41 EDT 2015

Tycode fix for plan9.

	We moved from Tyfunc to Tycode, but forgot to update the
	definition of the oob abort for plan9. Fixed.

--- a/6/genp9.c
+++ b/6/genp9.c
@@ -50,6 +50,7 @@
     tyvoid = mktype(Zloc, Tyvoid);
 
     ty = mktyfunc(Zloc, NULL, 0, mktype(Zloc, Tyvoid));
+    ty->type = Tycode;
     name = mknsname(Zloc, "_rt", "abort_oob");
     dcl = mkdecl(Zloc, name, ty);
     dcl->decl.isconst = 1;