Skip to content

Commit 723afef

Browse files
authored
[CIR][NFC] Expand doc on cir.scope terminators (#1078)
Fixed: #265
1 parent 2fc3593 commit 723afef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ def ScopeOp : CIR_Op<"scope", [
10561056
}
10571057
```
10581058

1059+
The blocks can be terminated by `cir.yield`, `cir.return` or `cir.throw`.
10591060
If `cir.scope` yields no value, the `cir.yield` can be left out, and
10601061
will be inserted implicitly.
10611062
}];

0 commit comments

Comments
 (0)