]> Cypherpunks repositories - gostls13.git/commitdiff
5g, 8g: fix build
authorRuss Cox <rsc@golang.org>
Fri, 17 Jun 2011 20:05:00 +0000 (16:05 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 17 Jun 2011 20:05:00 +0000 (16:05 -0400)
R=ken2
CC=golang-dev
https://golang.org/cl/4627045

src/cmd/5g/gsubr.c
src/cmd/8g/gsubr.c

index 7f20b4c7df0cd5c12ce33bfccc5607a5304db0cd..2d921846133266b5482c8e33c49c2f73b11cba6d 100644 (file)
@@ -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;
index be306ed9227eed97069de5e0a4c11e8608a4503f..a35c81eb108f3122dc2a8843d1c148dc1a165996 100644 (file)
@@ -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;