File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -466,13 +466,13 @@ SanitizerMask Fuchsia::getDefaultSanitizers() const {
466
466
SanitizerMask Res;
467
467
switch (getTriple ().getArch ()) {
468
468
case llvm::Triple::aarch64:
469
+ case llvm::Triple::riscv64:
469
470
Res |= SanitizerKind::ShadowCallStack;
470
471
break ;
471
472
case llvm::Triple::x86_64:
472
473
Res |= SanitizerKind::SafeStack;
473
474
break ;
474
475
default :
475
- // TODO: Enable SafeStack on RISC-V once tested.
476
476
break ;
477
477
}
478
478
return Res;
Original file line number Diff line number Diff line change 31
31
// CHECK: "-isysroot" "[[SYSROOT:[^"]+]]"
32
32
// CHECK: "-internal-externc-isystem" "[[SYSROOT]]{{/|\\\\}}include"
33
33
// CHECK-AARCH64: "-fsanitize=shadow-call-stack"
34
+ // CHECK-RISCV64: "-fsanitize=shadow-call-stack"
34
35
// CHECK-X86_64: "-fsanitize=safe-stack"
35
36
// CHECK: "-stack-protector" "2"
36
37
// CHECK-AARCH64: "-target-feature" "+outline-atomics"
You can’t perform that action at this time.
0 commit comments