This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Clean up mess around __throw_runtime_error
ClosedPublic

Authored by ldionne on Jul 11 2023, 1:05 PM.

Details

Reviewers
Mordante
Group Reviewers
Restricted Project
Commits
rG280d68e7f808: [libc++] Clean up mess around __throw_runtime_error
Summary

We were defining the function in locale.cpp, and we actually had two
overloads for it. This is pretty confusing given that one was static
and not exported from the dylib, and the other one was. Instead, use
the vanilla __throw_runtime_error function everywhere even though that
adds a tiny bit of code duplication.

Diff Detail

Event Timeline

ldionne created this revision.Jul 11 2023, 1:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 1:05 PM
Herald added a subscriber: arichardson. · View Herald Transcript
ldionne requested review of this revision.Jul 11 2023, 1:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 1:05 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Aug 9 2023, 9:44 AM
Mordante added a subscriber: Mordante.

LGTM!

This revision is now accepted and ready to land.Aug 9 2023, 9:44 AM

CI failure is AIX -- it reports a failure even though it's marked as soft fail. I'll have to fix that.

Merging.

This revision was landed with ongoing or failed builds.Aug 10 2023, 5:31 AM
This revision was automatically updated to reflect the committed changes.