Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/org/jruby/ir/representations/CFG.java
Original file line number Diff line number Diff line change
@@ -475,9 +475,8 @@ private boolean mergeBBs(BasicBlock a, BasicBlock b) {
}

public void removeBB(BasicBlock b) {
if (b.getLabel().isGlobalEnsureBlockLabel()) {
globalEnsureBB = null;
}
if (b == globalEnsureBB) globalEnsureBB = null;

graph.removeVertexFor(b);
bbMap.remove(b.getLabel());
rescuerMap.remove(b);

0 comments on commit b4b36dd

Please sign in to comment.