[PATCH] D92662: [Clang][Coroutine] Drop const attribute on pthread_self when coroutine is enabled

Xun Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 9 16:28:10 PST 2020


lxfind added a comment.

In D92662#2443970 <https://reviews.llvm.org/D92662#2443970>, @MaskRay wrote:

> If the attribute is not suitable, glibc should drop it. The compiler can add `readnone`/`readonly` if appropriate.

It's a C library interface though, and Coroutine is likely too new for this. I think that in the long run when Coroutine is pervasive we probably should drop it, but for now it's likely going to be hard for the glibc community to consider dropping it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92662/new/

https://reviews.llvm.org/D92662



More information about the cfe-commits mailing list