summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-06-17 16:05:00 -0400
committerRuss Cox <rsc@golang.org>2011-06-17 16:05:00 -0400
commit8d4016a5336a64bab701971abfb5846a0f891209 (patch)
tree75aab87b85f6660d12b42737a05f2189f175cbd2
parentb183e2cc440d5a357924a95c5a68b87b589e185c (diff)
downloadgo-8d4016a5336a64bab701971abfb5846a0f891209.tar.gz
5g, 8g: fix build
R=ken2 CC=golang-dev http://codereview.appspot.com/4627045
-rw-r--r--src/cmd/5g/gsubr.c2
-rw-r--r--src/cmd/8g/gsubr.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/cmd/5g/gsubr.c b/src/cmd/5g/gsubr.c
index 7f20b4c7d..2d9218461 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 be306ed92..a35c81eb1 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;