From: Russ Cox Date: Fri, 17 Jun 2011 20:05:00 +0000 (-0400) Subject: 5g, 8g: fix build X-Git-Tag: weekly.2011-06-23~69 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b96ff8458c31bde2e35af33e545abf91c29751ed;p=gostls13.git 5g, 8g: fix build R=ken2 CC=golang-dev https://golang.org/cl/4627045 --- diff --git a/src/cmd/5g/gsubr.c b/src/cmd/5g/gsubr.c index 7f20b4c7df..2d92184613 100644 --- a/src/cmd/5g/gsubr.c +++ b/src/cmd/5g/gsubr.c @@ -109,8 +109,6 @@ unpatch(Prog *p) if(p->to.type != D_BRANCH) fatal("unpatch: not a branch"); - if(p->to.branch == P) - fatal("unpatch: not patched"); q = p->to.branch; p->to.branch = P; p->to.offset = 0; diff --git a/src/cmd/8g/gsubr.c b/src/cmd/8g/gsubr.c index be306ed922..a35c81eb10 100644 --- a/src/cmd/8g/gsubr.c +++ b/src/cmd/8g/gsubr.c @@ -107,8 +107,6 @@ unpatch(Prog *p) if(p->to.type != D_BRANCH) fatal("unpatch: not a branch"); - if(p->to.branch == P) - fatal("unpatch: not patched"); q = p->to.branch; p->to.branch = P; p->to.offset = 0;