Skip to content

Commit

Permalink
Fix generics for update to dirgra
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 25, 2024
1 parent d0cbf1e commit ae044e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/jruby/ir/persistence/IRDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,16 @@ public void visit(IRScope scope, boolean full, boolean recurse) {
for (BasicBlock bb : bbs) {
printAnsi(BLOCK_COLOR, "\nblock #" + bb.getID());

Iterable<Edge<BasicBlock>> outs;
Iterable<Edge<BasicBlock, CFG.EdgeType>> outs;
if ((outs = ic.getCFG().getOutgoingEdges(bb)) != null && outs.iterator().hasNext()) {

printAnsi(BLOCK_COLOR, " (out: ");

boolean first = true;
for (Edge<BasicBlock> out : outs) {
for (Edge<BasicBlock, CFG.EdgeType> out : outs) {
if (!first) printAnsi(BLOCK_COLOR, ", ");
first = false;
CFG.EdgeType type = (CFG.EdgeType) out.getType();
CFG.EdgeType type = out.getType();
BasicBlock block = out.getDestination().getOutgoingDestinationData();
switch (type) {
case EXIT:
Expand Down

0 comments on commit ae044e9

Please sign in to comment.