From dc1895c3dde03d61ceaa07854da438264dccc5d6 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 21 Apr 2022 20:48:33 +0000 Subject: [PATCH] Our malloc(3) guarantees 16-byte alignment. ok sthen@, tb@ --- gnu/llvm/clang/lib/Basic/TargetInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/llvm/clang/lib/Basic/TargetInfo.cpp b/gnu/llvm/clang/lib/Basic/TargetInfo.cpp index 5f8e04c2bd6..2a7157ddb7a 100644 --- a/gnu/llvm/clang/lib/Basic/TargetInfo.cpp +++ b/gnu/llvm/clang/lib/Basic/TargetInfo.cpp @@ -70,7 +70,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) { // the alignment is 16 bytes on both 64-bit and 32-bit systems. if (T.isGNUEnvironment() || T.isWindowsMSVCEnvironment() || T.isAndroid()) NewAlign = Triple.isArch64Bit() ? 128 : Triple.isArch32Bit() ? 64 : 0; - else if (T.isOSDarwin()) + else if (T.isOSDarwin() || T.isOSOpenBSD()) NewAlign = 128; else NewAlign = 0; // Infer from basic type alignment. -- 2.20.1