18 lines
943 B
Plaintext
18 lines
943 B
Plaintext
$OpenBSD: patch-lib_Target_AArch64_AArch64Subtarget_h,v 1.3 2018/04/07 14:55:42 ajacoutot Exp $
|
|
|
|
Disable the Load Stack Guard for OpenBSD on AArch64. We don't use it
|
|
on any other platform and it causes a segfault in combination with our
|
|
IR Stack Guard.
|
|
|
|
Index: lib/Target/AArch64/AArch64Subtarget.h
|
|
--- lib/Target/AArch64/AArch64Subtarget.h.orig
|
|
+++ lib/Target/AArch64/AArch64Subtarget.h
|
|
@@ -275,6 +275,7 @@ class AArch64Subtarget final : public AArch64GenSubtar
|
|
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
|
|
bool isTargetIOS() const { return TargetTriple.isiOS(); }
|
|
bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
|
|
+ bool isTargetOpenBSD() const { return TargetTriple.isOSOpenBSD(); }
|
|
bool isTargetWindows() const { return TargetTriple.isOSWindows(); }
|
|
bool isTargetAndroid() const { return TargetTriple.isAndroid(); }
|
|
bool isTargetFuchsia() const { return TargetTriple.isOSFuchsia(); }
|