Skip to content

Commit de8cf69

Browse files
authored
[LangRef] callbr result can be used in all successors (#91167)
Originally, the callbr result could only be used on the fallthrough destination. This limitation has been lifted, and the result is now also available on the indirect destinations. However, LangRef was not updated to reflect this.
1 parent 9243841 commit de8cf69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/LangRef.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9113,8 +9113,8 @@ instruction in most regards. The primary difference is that it
91139113
establishes an association with additional labels to define where control
91149114
flow goes after the call.
91159115

9116-
The output values of a '``callbr``' instruction are available only to
9117-
the '``fallthrough``' block, not to any '``indirect``' blocks(s).
9116+
The output values of a '``callbr``' instruction are available both in the
9117+
the '``fallthrough``' block, and any '``indirect``' blocks(s).
91189118

91199119
The only use of this today is to implement the "goto" feature of gcc inline
91209120
assembly where additional labels can be provided as locations for the inline

0 commit comments

Comments
 (0)