This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Inlines format_error for clang-cl DLL.
ClosedPublic

Authored by Mordante on Aug 25 2022, 8:39 AM.

Details

Reviewers
ldionne
mstorsjo
Group Reviewers
Restricted Project
Commits
rG308a5b1a32f0: [libc++] Inlines format_error for clang-cl DLL.
Summary

This version is build without support for the experimental library but
the code still wants to link this function. Inlining the function solves
the issue.

Diff Detail

Event Timeline

Mordante created this revision.Aug 25 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 8:39 AM
Herald added a subscriber: mgorny. · View Herald Transcript
Mordante requested review of this revision.Aug 25 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 8:39 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Not much opinion on the change itself, but one nitpick about a comment.

libcxx/include/__format/format_error.h
35

Nitpick, "Clang-cl", or "MSVC mode" or something like that, but not plain "Clang".

Mordante added inline comments.Aug 27 2022, 5:06 AM
libcxx/include/__format/format_error.h
35

Thanks for the comment! I'll fix it when landing the patch.

ldionne accepted this revision.Aug 31 2022, 8:54 AM

LGTM but we should really look into fixing the experimental library on Windows/shared.

This revision is now accepted and ready to land.Aug 31 2022, 8:54 AM
Mordante marked an inline comment as done.Aug 31 2022, 10:04 AM
This revision was automatically updated to reflect the committed changes.