Skip to content

Commit dfd6670

Browse files
thurstondsvkeerthy
authored andcommitted
[NFCI][ubsan] Add/update deprecation TODOs
Mention -fsanitize-skip-hot-cutoffs and -fsanitize-annotate-debug-info are available as replacements
1 parent a2c2b68 commit dfd6670

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ using namespace clang;
5656
using namespace CodeGen;
5757

5858
namespace clang {
59-
// TODO: Introduce frontend options to enabled per sanitizers, similar to
60-
// `fsanitize-trap`.
59+
// TODO: consider deprecating ClSanitizeGuardChecks; functionality is subsumed
60+
// by -fsanitize-skip-hot-cutoff
6161
llvm::cl::opt<bool> ClSanitizeGuardChecks(
6262
"ubsan-guard-checks", llvm::cl::Optional,
6363
llvm::cl::desc("Guard UBSAN checks with `llvm.allow.ubsan.check()`."));
6464

6565
} // namespace clang
6666

67+
// TODO: consider deprecating ClArrayBoundsPseudoFn; functionality is subsumed
68+
// by -fsanitize-annotate-debug-info
6769
static llvm::cl::opt<bool> ClArrayBoundsPseudoFn(
6870
"array-bounds-pseudofn", llvm::cl::Hidden, llvm::cl::Optional,
6971
llvm::cl::desc("Emit debug info that places array-bounds instrumentation "

0 commit comments

Comments
 (0)