We should not call destructor if value is nullptr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D148291
[LIBC] Fix incorrect behavior with pthread_key_t when value was nullptr ClosedPublic Authored by goldstein.w.n on Apr 13 2023, 8:04 PM.
Details Summary We should not call destructor if value is nullptr.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 13 2023, 8:04 PM This revision is now accepted and ready to land.Apr 14 2023, 12:29 PM Closed by commit rG6f1a9ed072de: [LIBC] Fix incorrect behavior with pthread_key_t when value was nullptr (authored by goldstein.w.n). · Explain WhyApr 19 2023, 5:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 515158 libc/src/__support/threads/thread.cpp
libc/test/integration/src/pthread/pthread_tss_test.cpp
|
This is already in an anonymous namespace so static is not required.