Skip to content

Commit 7a542cb

Browse files
Update llvm/docs/UndefinedBehavior.rst
Co-authored-by: Antonio Frighetto <[email protected]>
1 parent 8c3dfa2 commit 7a542cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/docs/UndefinedBehavior.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ guarantees through the language type system or the runtime).
2222
For example, we could specify the result of division by zero as zero, but
2323
since we are not really interested in the result, we say it is UB.
2424

25-
There are two forms of UB in LLVM: immediate UB and deferred UB (undef and
26-
poison values).
25+
There exist two forms of undefined behaviour in LLVM: immediate UB and deferred UB. The latter comes in two flavours: undef and poison values.
2726
The lattice of values in LLVM is:
2827
immediate UB > poison > undef > freeze > concrete value.
2928

0 commit comments

Comments
 (0)