[clang] [libcxx] [llvm] [CLANG][LIBCXX][LLVM] Partial program correctness. P1494R5, P3641R0 (PR #237335)
Hristo Hristov via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 14 03:37:10 PST 2026
================
@@ -0,0 +1,28 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___UTILITY_OBSERVABLE_CHECKPOINT_H
+#define _LIBCPP___UTILITY_OBSERVABLE_CHECKPOINT_H
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+# pragma GCC system_header
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_observable_checkpoint)
+
+_LIBCPP_HIDE_FROM_ABI inline void observable_checkpoint() noexcept { __builtin_observable_checkpoint(); }
----------------
Zingam wrote:
FYI: `_LIBCPP_HIDE_FROM_ABI` is no longer required in many cases.
https://github.com/llvm/llvm-project/pull/237335
More information about the cfe-commits
mailing list