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 @@ -500,6 +500,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(); }