This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi][NFCI] Refactor demangling_terminate_handler to reduce nesting
ClosedPublic

Authored by ldionne on May 12 2022, 10:27 AM.

Details

Summary

This keeps the same logic, but uses early return to avoid multiple layers
of nested ifs and make the code simpler to follow.

Diff Detail

Event Timeline

ldionne created this revision.May 12 2022, 10:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:27 AM
ldionne requested review of this revision.May 12 2022, 10:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 10:27 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
urnathan accepted this revision.May 13 2022, 6:12 AM
urnathan added a subscriber: urnathan.

LGTM,

This revision is now accepted and ready to land.May 13 2022, 6:12 AM