This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Fix issue with std::map::find in Objective-C++ with modules
ClosedPublic

Authored by ldionne on May 18 2023, 10:31 AM.

Details

Summary

This works around an issue with modules where Clang complains that
it doesn't know about coroutine_handle<> when trying to write very
basic code using std::map::find.

rdar://106813461

Diff Detail

Event Timeline

ldionne created this revision.May 18 2023, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 10:31 AM
ldionne requested review of this revision.May 18 2023, 10:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 10:31 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.May 18 2023, 11:32 AM
This revision is now accepted and ready to land.May 18 2023, 11:32 AM
ldionne updated this revision to Diff 523541.May 18 2023, 1:46 PM

Fix GCC CI

Mordante accepted this revision.May 19 2023, 8:29 AM
Mordante added a subscriber: Mordante.

LGTM modulo one nit.

libcxx/include/module.modulemap.in
1790

Please add a comment why this is not in alphabetic order.

ldionne marked an inline comment as done.May 19 2023, 1:55 PM
ldionne added inline comments.
libcxx/include/module.modulemap.in
1790

Good suggestion, will add upon landing to avoid re-running CI.

This revision was automatically updated to reflect the committed changes.
ldionne marked an inline comment as done.