Skip to content

Commit d06dfe0

Browse files
committed
Add change note
1 parent 0f3dd6d commit d06dfe0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
category: breaking
3+
---
4+
* The class `ControlFlowNode` (and by extension `BasicBlock`) is no longer
5+
directly equatable to `Expr` and `Stmt`. Any queries that have been
6+
exploiting these equalities, for example by using casts, will need minor
7+
updates in order to fix any compilation errors. Conversions can be inserted
8+
in either direction depending on what is most convenient. Available
9+
conversions include `Expr.getControlFlowNode()`, `Stmt.getControlFlowNode()`,
10+
`ControlFlowNode.asExpr()`, `ControlFlowNode.asStmt()`, and
11+
`ControlFlowNode.asCall()`. Exit nodes were until now modelled as a
12+
`ControlFlowNode` equal to its enclosing `Callable`; these are now instead
13+
modelled by the class `ControlFlow::ExitNode`.

0 commit comments

Comments
 (0)