[libcxx-commits] [libcxx] [libc++] Remove a duplicated definition of _LIBCPP_NOINLINE (PR #79114)

Dmitri Gribenko via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 23 02:05:18 PST 2024


https://github.com/gribozavr created https://github.com/llvm/llvm-project/pull/79114

I failed to delete the old definition as a part of https://github.com/llvm/llvm-project/pull/73838.

>From ec104b4ff04049c533853b27e982f1ccb22d8b5d Mon Sep 17 00:00:00 2001
From: Dmitri Gribenko <gribozavr at gmail.com>
Date: Tue, 23 Jan 2024 11:01:48 +0100
Subject: [PATCH] [libc++] Remove a duplicated definition of _LIBCPP_NOINLINE

I failed to delete the old definition as a part of
https://github.com/llvm/llvm-project/pull/73838.
---
 libcxx/include/__config | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libcxx/include/__config b/libcxx/include/__config
index eab37e7576bdc3..9557e8e8cf97f2 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1235,12 +1235,6 @@ __sanitizer_verify_double_ended_contiguous_container(const void*, const void*, c
 #    define _LIBCPP_CONSTINIT
 #  endif
 
-#  if __has_attribute(__noinline__)
-#    define _LIBCPP_NOINLINE __attribute__((__noinline__))
-#  else
-#    define _LIBCPP_NOINLINE
-#  endif
-
 #  if defined(__CUDACC__) || defined(__CUDA_ARCH__) || defined(__CUDA_LIBDEVICE__)
 // The CUDA SDK contains an unfortunate definition for the __noinline__ macro,
 // which breaks the regular __attribute__((__noinline__)) syntax. Therefore,



More information about the libcxx-commits mailing list