mirror of
https://github.com/golang/go
synced 2024-11-21 19:54:41 -07:00
compiler fatal error in switch.
fixes #867. R=rsc CC=golang-dev https://golang.org/cl/1691045
This commit is contained in:
parent
ea88de805e
commit
2795282b50
@ -777,11 +777,12 @@ typeswitch(Node *sw)
|
|||||||
// binary search among cases to narrow by hash
|
// binary search among cases to narrow by hash
|
||||||
cas = list(cas, typebsw(c1, ncase));
|
cas = list(cas, typebsw(c1, ncase));
|
||||||
}
|
}
|
||||||
|
if(nerrors == 0) {
|
||||||
cas = list(cas, def);
|
cas = list(cas, def);
|
||||||
sw->nbody = concat(cas, sw->nbody);
|
sw->nbody = concat(cas, sw->nbody);
|
||||||
sw->list = nil;
|
sw->list = nil;
|
||||||
walkstmtlist(sw->nbody);
|
walkstmtlist(sw->nbody);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user