Skip to content

Commit b413bea

Browse files
authored
[NFC] [sanitizer] get rid of references to fsanitize-top-hot (#145810)
That flag does not exist.
1 parent c539ec0 commit b413bea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/lib/Driver/SanitizerArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
740740
options::OPT_fno_sanitize_merge_handlers_EQ);
741741
MergeKinds &= Kinds;
742742

743-
// Parse -fno-sanitize-top-hot flags
743+
// Parse -fno-fsanitize-skip-hot-cutoff flags
744744
SkipHotCutoffs = parseSanitizeSkipHotCutoffArgs(D, Args, DiagnoseErrors);
745745

746746
// Parse -f(no-)?sanitize-annotate-debug-info flags

clang/test/Driver/fsanitize.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,18 +1284,18 @@
12841284
// RUN: not %clang --target=x86_64-linux-gnu -fsanitize-skip-hot-cutoff=undefined=xyzzy %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SKIP-HOT-CUTOFF8
12851285
// CHECK-SKIP-HOT-CUTOFF8: unsupported argument 'undefined=xyzzy' to option '-fsanitize-skip-hot-cutoff='
12861286

1287-
// Invalid: -fno-sanitize-top without parameters
1287+
// Invalid: -fsanitize-skip-hot-cutoff without parameters
12881288
// RUN: not %clang --target=x86_64-linux-gnu -fsanitize-skip-hot-cutoff %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SKIP-HOT-CUTOFF9
12891289
// CHECK-SKIP-HOT-CUTOFF9: unknown argument: '-fsanitize-skip-hot-cutoff'
12901290

1291-
// Invalid: -fno-sanitize-top=undefined without cutoff
1291+
// Invalid: -fsanitize-skip-hot-cutoff=undefined without cutoff
12921292
// RUN: not %clang --target=x86_64-linux-gnu -fsanitize-skip-hot-cutoff=undefined %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SKIP-HOT-CUTOFF10
12931293
// CHECK-SKIP-HOT-CUTOFF10: unsupported argument 'undefined' to option '-fsanitize-skip-hot-cutoff='
12941294

1295-
// Invalid: -fno-sanitize-top=undefined= without cutoff
1295+
// Invalid: -fsanitize-skip-hot-cutoff=undefined= without cutoff
12961296
// RUN: not %clang --target=x86_64-linux-gnu -fsanitize-skip-hot-cutoff=undefined= %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SKIP-HOT-CUTOFF11
12971297
// CHECK-SKIP-HOT-CUTOFF11: unsupported argument 'undefined=' to option '-fsanitize-skip-hot-cutoff='
12981298

1299-
// No-op: -fno-sanitize-top= without parameters is unusual but valid
1299+
// No-op: -fsanitize-skip-hot-cutoff= without parameters is unusual but valid
13001300
// RUN: %clang -Werror --target=x86_64-linux-gnu -fsanitize-skip-hot-cutoff= %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SKIP-HOT-CUTOFF12
13011301
// CHECK-SKIP-HOT-CUTOFF12-NOT: "-fsanitize-skip-hot-cutoff"

0 commit comments

Comments
 (0)