[RISCV] Default to -fsanitize=shadow-call-stack for Fuchsia
authorRoland McGrath <mcgrathr@google.com>
Mon, 6 Feb 2023 02:15:10 +0000 (18:15 -0800)
committerRoland McGrath <mcgrathr@google.com>
Mon, 6 Feb 2023 02:58:59 +0000 (18:58 -0800)
commitf08d86fc7f4479d5f44d75c720201334682075b8
tree8f9de3ea00367c615012f5069efce9d70d0c33b7
parent8dac97efe46b63231775a840b610eee22e62cd8c
[RISCV] Default to -fsanitize=shadow-call-stack for Fuchsia

The ShadowCallStack is the preferred and default ABI for Fuchsia.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D143357
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.c