File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -454,8 +454,7 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
454
454
<< lastArgumentForMask (D, Args, Kinds & NeedsLTO) << " -flto" ;
455
455
}
456
456
457
- if ((Kinds & SanitizerKind::ShadowCallStack) &&
458
- TC.getTriple ().getArch () == llvm::Triple::aarch64 &&
457
+ if ((Kinds & SanitizerKind::ShadowCallStack) && TC.getTriple ().isAArch64 () &&
459
458
!llvm::AArch64::isX18ReservedByDefault (TC.getTriple ()) &&
460
459
!Args.hasArg (options::OPT_ffixed_x18)) {
461
460
D.Diag (diag::err_drv_argument_only_allowed_with)
Original file line number Diff line number Diff line change 809
809
// CHECK-SCS-MINIMAL: "-fsanitize=shadow-call-stack"
810
810
// CHECK-SCS-MINIMAL: "-fsanitize-minimal-runtime"
811
811
812
+ // RUN: %clang -target aarch64 -fsanitize=shadow-call-stack %s -### 2>&1 | FileCheck %s --check-prefix=AARCH64-SCS
813
+ // RUN: %clang -target aarch64_be -fsanitize=shadow-call-stack %s -### 2>&1 | FileCheck %s --check-prefix=AARCH64-SCS
814
+ // AARCH64-SCS: "-fsanitize=shadow-call-stack"
815
+
812
816
// RUN: %clang -target aarch64-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO
813
817
// RUN: %clang -target arm-linux-androideabi -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO
814
818
// RUN: %clang -target x86_64-linux-gnu -fsanitize=scudo %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SCUDO
You can’t perform that action at this time.
0 commit comments