Commit 28479f2c authored by Keith Randall's avatar Keith Randall

cmd/gc: liveness: don't add fallthough edge after panic

update #7205

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/50730044
parent 96471b65
......@@ -538,6 +538,7 @@ newcfg(Prog *firstp)
switch(bb->last->as) {
case AJMP:
case ARET:
case AUNDEF:
break;
default:
addedge(bb, bb->last->link->opt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment