Skip to content

Commit c21b8a7

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.7 [skip ci]
1 parent adac920 commit c21b8a7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

clang/include/clang/Options/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,8 +2656,8 @@ defm sanitize_minimal_runtime : BoolOption<"f", "sanitize-minimal-runtime",
26562656
PosFlag<SetTrue>,
26572657
NegFlag<SetFalse>>,
26582658
Group<f_clang_Group>;
2659-
defm sanitize_handler_preserve_all_regs_experimental
2660-
: BoolOption<"f", "sanitize-handler-preserve-all-regs-experimental",
2659+
defm sanitize_handler_preserve_all_regs
2660+
: BoolOption<"f", "sanitize-handler-preserve-all-regs",
26612661
CodeGenOpts<"SanitizeHandlerPreserveAllRegs">, DefaultFalse,
26622662
PosFlag<SetTrue>, NegFlag<SetFalse>>,
26632663
Group<f_clang_Group>;

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
423423
MinimalRuntime =
424424
Args.hasFlag(options::OPT_fsanitize_minimal_runtime,
425425
options::OPT_fno_sanitize_minimal_runtime, MinimalRuntime);
426-
HandlerPreserveAllRegs = Args.hasFlag(
427-
options::OPT_fsanitize_handler_preserve_all_regs_experimental,
428-
options::OPT_fno_sanitize_handler_preserve_all_regs_experimental,
429-
HandlerPreserveAllRegs);
426+
HandlerPreserveAllRegs =
427+
Args.hasFlag(options::OPT_fsanitize_handler_preserve_all_regs,
428+
options::OPT_fno_sanitize_handler_preserve_all_regs,
429+
HandlerPreserveAllRegs);
430430

431431
// The object size sanitizer should not be enabled at -O0.
432432
Arg *OptLevel = Args.getLastArg(options::OPT_O_Group);
@@ -1474,7 +1474,7 @@ void SanitizerArgs::addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
14741474
CmdArgs.push_back("-fsanitize-minimal-runtime");
14751475

14761476
if (HandlerPreserveAllRegs)
1477-
CmdArgs.push_back("-fsanitize-handler-preserve-all-regs-experimental");
1477+
CmdArgs.push_back("-fsanitize-handler-preserve-all-regs");
14781478

14791479
if (AsanFieldPadding)
14801480
CmdArgs.push_back(Args.MakeArgString("-fsanitize-address-field-padding=" +

clang/test/Driver/fsanitize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,10 +984,10 @@
984984
// CHECK-UBSAN-MINIMAL: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute|function),?){18}"}}
985985
// CHECK-UBSAN-MINIMAL: "-fsanitize-minimal-runtime"
986986

987-
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=undefined -fsanitize-minimal-runtime -fsanitize-handler-preserve-all-regs-experimental %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UBSAN-MINIMAL-PRESERVE
987+
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=undefined -fsanitize-minimal-runtime -fsanitize-handler-preserve-all-regs %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-UBSAN-MINIMAL-PRESERVE
988988
// CHECK-UBSAN-MINIMAL-PRESERVE: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|shift-base|shift-exponent|unreachable|return|vla-bound|alignment|null|pointer-overflow|float-cast-overflow|array-bounds|enum|bool|builtin|returns-nonnull-attribute|nonnull-attribute|function),?){18}"}}
989989
// CHECK-UBSAN-MINIMAL-PRESERVE: "-fsanitize-minimal-runtime"
990-
// CHECK-UBSAN-MINIMAL-PRESERVE: "-fsanitize-handler-preserve-all-regs-experimental"
990+
// CHECK-UBSAN-MINIMAL-PRESERVE: "-fsanitize-handler-preserve-all-regs
991991

992992
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=integer -fsanitize-trap=integer %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-INTSAN-TRAP
993993
// CHECK-INTSAN-TRAP: "-fsanitize-trap=integer-divide-by-zero,shift-base,shift-exponent,signed-integer-overflow,unsigned-integer-overflow,unsigned-shift-base,implicit-unsigned-integer-truncation,implicit-signed-integer-truncation,implicit-integer-sign-change"

0 commit comments

Comments
 (0)