Skip to content

Commit 31cdd17

Browse files
committed
Add commentary
1 parent 959cbe0 commit 31cdd17

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,8 @@ def fno_sanitize_merge_handlers : Flag<["-"], "fno-sanitize-merge">, Group<f_cla
25362536
def fsanitize_add_pseudo_functions_EQ
25372537
: CommaJoined<["-"], "fsanitize-add-pseudo-functions=">,
25382538
Group<f_clang_Group>,
2539-
HelpText<"Add pseudo-functions to checks for specified sanitizers">;
2539+
HelpText<"Add pseudo-functions to checks for specified sanitizers, if "
2540+
"supported.">;
25402541
def fno_sanitize_add_pseudo_functions_EQ
25412542
: CommaJoined<["-"], "fno-sanitize-add-pseudo-functions=">,
25422543
Group<f_clang_Group>,
@@ -2548,7 +2549,7 @@ def fsanitize_add_pseudo_functions
25482549
Alias<fsanitize_add_pseudo_functions_EQ>,
25492550
AliasArgs<["all"]>,
25502551
HelpText<"Allow compiler to add pseudo-functions to checks for all "
2551-
"sanitizers">;
2552+
"sanitizers, if supported">;
25522553
def fno_sanitize_add_pseudo_functions
25532554
: Flag<["-"], "fno-sanitize-add-pseudo-functions">,
25542555
Group<f_clang_Group>,

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound,
12281228
SanitizerScope SanScope(this);
12291229

12301230
llvm::DILocation *CheckDI = Builder.getCurrentDebugLocation();
1231+
// TODO: deprecate ClArrayBoundsPseudoFn
12311232
if ((ClArrayBoundsPseudoFn ||
12321233
CGM.getCodeGenOpts().SanitizeAddPseudoFunctions.has(
12331234
SanitizerKind::SO_ArrayBounds)) &&

0 commit comments

Comments
 (0)