Skip to content

Commit dbfb29f

Browse files
authored
[libc++] Add a link to __builtin_verbose_trap from the hardening docs (llvm#126930)
1 parent 31cb807 commit dbfb29f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/docs/Hardening.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,12 @@ Hardening assertion failure
248248
===========================
249249

250250
In production modes (``fast`` and ``extensive``), a hardening assertion failure
251-
immediately ``_traps <https://llvm.org/docs/LangRef.html#llvm-trap-intrinsic>``
251+
immediately ``_traps <https://clang.llvm.org/docs/LanguageExtensions.html#builtin-verbose-trap>``
252252
the program. This is the safest approach that also minimizes the code size
253253
penalty as the failure handler maps to a single instruction. The downside is
254254
that the failure provides no additional details other than the stack trace
255255
(which might also be affected by optimizations).
256256

257-
TODO(hardening): describe ``__builtin_verbose_trap`` once we can use it.
258-
259257
In the ``debug`` mode, an assertion failure terminates the program in an
260258
unspecified manner and also outputs the associated error message to the error
261259
output. This is less secure and increases the size of the binary (among other

0 commit comments

Comments
 (0)