[clang] [Docs][TySan] Correct optimisation remarks (PR #205577)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 08:55:55 PDT 2026


================
@@ -68,8 +71,8 @@ $ cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_
 
 Compile and link your program with `-fsanitize=type` flag. The
 TypeSanitizer run-time library should be linked to the final executable, so
-make sure to use `clang` (not `ld`) for the final link step. To
-get a reasonable performance add `-O1` or higher.
+make sure to use ``clang`` (not ``ld``) for the final link step. To increase performance, you can optimise with ``-O1``.
+Higher levels of optimization may result in false-negatives as incorrect code fragments may get optimized out incorrectly.
----------------
fhahn wrote:

looks fine to me, thanks

https://github.com/llvm/llvm-project/pull/205577


More information about the cfe-commits mailing list