mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-14 09:26:22 +00:00
Fix typo in programmer's manual cantFile -> cantFail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfd9349162
commit
df16b2ed82
@ -821,7 +821,7 @@ T value:
|
|||||||
|
|
||||||
Like the ExitOnError utility, cantFail simplifies control flow. Their treatment
|
Like the ExitOnError utility, cantFail simplifies control flow. Their treatment
|
||||||
of error cases is very different however: Where ExitOnError is guaranteed to
|
of error cases is very different however: Where ExitOnError is guaranteed to
|
||||||
terminate the program on an error input, cantFile simply asserts that the result
|
terminate the program on an error input, cantFail simply asserts that the result
|
||||||
is success. In debug builds this will result in an assertion failure if an error
|
is success. In debug builds this will result in an assertion failure if an error
|
||||||
is encountered. In release builds the behavior of cantFail for failure values is
|
is encountered. In release builds the behavior of cantFail for failure values is
|
||||||
undefined. As such, care must be taken in the use of cantFail: clients must be
|
undefined. As such, care must be taken in the use of cantFail: clients must be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user