Skip to content

[libc++] Remove a duplicated definition of _LIBCPP_NOINLINE #79114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

gribozavr
Copy link
Collaborator

I failed to delete the old definition as a part of #73838.

I failed to delete the old definition as a part of
llvm#73838.
@gribozavr gribozavr requested a review from a team as a code owner January 23, 2024 10:05
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Jan 23, 2024
@llvmbot
Copy link
Member

llvmbot commented Jan 23, 2024

@llvm/pr-subscribers-libcxx

Author: Dmitri Gribenko (gribozavr)

Changes

I failed to delete the old definition as a part of #73838.


Full diff: https://github.com/llvm/llvm-project/pull/79114.diff

1 Files Affected:

  • (modified) libcxx/include/__config (-6)
diff --git a/libcxx/include/__config b/libcxx/include/__config
index eab37e7576bdc3e..9557e8e8cf97f28 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,

@philnik777 philnik777 merged commit 9629c73 into llvm:main Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants