mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
[Fuchsia] Don't fail for unknown architectures
When selecting the set of default sanitizers, don't fail for unknown architectures. This may be the case e.g. with x86_64-unknown-fuchsia -m32 target that's used to build the bootloader. Differential Revision: https://reviews.llvm.org/D70747
This commit is contained in:
parent
ded2490494
commit
f7aeca45b2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user