diff --git a/clang/lib/Driver/ToolChains/Fuchsia.cpp b/clang/lib/Driver/ToolChains/Fuchsia.cpp index 9bea0b15c873..4c5d4003f144 100644 --- a/clang/lib/Driver/ToolChains/Fuchsia.cpp +++ b/clang/lib/Driver/ToolChains/Fuchsia.cpp @@ -351,10 +351,9 @@ SanitizerMask Fuchsia::getDefaultSanitizers() const { case llvm::Triple::x86_64: Res |= SanitizerKind::SafeStack; break; - case llvm::Triple::riscv64: - break; default: - llvm_unreachable("invalid architecture"); + // TODO: Enable SafeStack on RISC-V once tested. + break; } return Res; }