$OpenBSD: patch-base_compiler_specific_h,v 1.2 2021/10/29 14:49:39 robert Exp $

Index: base/compiler_specific.h
--- base/compiler_specific.h.orig
+++ base/compiler_specific.h
@@ -366,7 +366,7 @@ inline constexpr bool AnalyzerAssumeTrue(bool arg) {
 
 // Use nomerge attribute to disable optimization of merging multiple same calls.
 #if defined(__clang__) && (__clang_major__ >= 12) && \
-    __has_attribute(nomerge) && !defined(OS_CHROMEOS)
+    __has_attribute(nomerge) && !defined(OS_CHROMEOS) && !defined(OS_BSD)
 #define NOMERGE [[clang::nomerge]]
 #else
 #define NOMERGE
