Skip to content

Commit 686c257

Browse files
committed
Remove comments
1 parent 51973b7 commit 686c257

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,9 @@ static SanitizerMask parseSanitizeTrapArgs(const Driver &D,
315315
// '-fsanitize=undefined -fsanitize-trap=undefined'
316316
// (clang/test/Driver/fsanitize.c ), which is that vptr is not enabled at all
317317
// (not even in recover mode) in order to avoid the need for a ubsan runtime.
318-
return parseSanitizeArgs(D, Args, DiagnoseErrors,
319-
/* Default */ TrappingDefault,
320-
/* AlwaysIn */ AlwaysTrap,
321-
/* AlwaysOut */ NeverTrap,
322-
/* OptInID */ options::OPT_fsanitize_trap_EQ,
323-
/* OptOutID */ options::OPT_fno_sanitize_trap_EQ);
318+
return parseSanitizeArgs(D, Args, DiagnoseErrors, TrappingDefault, AlwaysTrap,
319+
NeverTrap, options::OPT_fsanitize_trap_EQ,
320+
options::OPT_fno_sanitize_trap_EQ);
324321
}
325322

326323
bool SanitizerArgs::needsFuzzerInterceptors() const {
@@ -683,13 +680,10 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
683680
// default in ASan?
684681

685682
// Parse -f(no-)?sanitize-recover flags.
686-
SanitizerMask RecoverableKinds =
687-
parseSanitizeArgs(D, Args, DiagnoseErrors,
688-
/* Default */ RecoverableByDefault,
689-
/* AlwaysIn */ AlwaysRecoverable,
690-
/* AlwaysOut */ Unrecoverable,
691-
/* OptInID */ options::OPT_fsanitize_recover_EQ,
692-
/* OptOutID */ options::OPT_fno_sanitize_recover_EQ);
683+
SanitizerMask RecoverableKinds = parseSanitizeArgs(
684+
D, Args, DiagnoseErrors, RecoverableByDefault, AlwaysRecoverable,
685+
Unrecoverable, options::OPT_fsanitize_recover_EQ,
686+
options::OPT_fno_sanitize_recover_EQ);
693687
RecoverableKinds |= AlwaysRecoverable;
694688
RecoverableKinds &= ~Unrecoverable;
695689
RecoverableKinds &= Kinds;

0 commit comments

Comments
 (0)