From b96ff8458c31bde2e35af33e545abf91c29751ed Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 17 Jun 2011 16:05:00 -0400 Subject: [PATCH] 5g, 8g: fix build R=ken2 CC=golang-dev https://golang.org/cl/4627045 --- src/cmd/5g/gsubr.c | 2 -- src/cmd/8g/gsubr.c | 2 -- 2 files changed, 4 deletions(-) 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;