Skip to content

Commit

Permalink
Swift: getImmediateBasicBlockDominator/2 should use immediatelyDomina…
Browse files Browse the repository at this point in the history
…tes/0.
  • Loading branch information
d10c authored and MathiasVP committed Oct 24, 2023
1 parent 95a7d65 commit c04654d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ private module CaptureInput implements VariableCapture::InputSig {
Location getLocation() { result = super.getLocation() }
}

BasicBlock getImmediateBasicBlockDominator(BasicBlock bb) { result.(B::BasicBlock).dominates(bb) }
BasicBlock getImmediateBasicBlockDominator(BasicBlock bb) {
result.(B::BasicBlock).immediatelyDominates(bb)
}

BasicBlock getABasicBlockSuccessor(BasicBlock bb) { result = bb.(B::BasicBlock).getASuccessor() }

Expand Down

0 comments on commit c04654d

Please sign in to comment.