This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Mark Expected<T>::assertIsChecked() as const
ClosedPublic

Authored by xndcn on Jul 1 2021, 9:03 AM.

Details

Summary

Some const methods of Expected<T> invoke assertIsChecked(), so we should mark it as const too.

Diff Detail

Event Timeline

xndcn created this revision.Jul 1 2021, 9:03 AM
xndcn requested review of this revision.Jul 1 2021, 9:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2021, 9:03 AM
xndcn updated this revision to Diff 355933.Jul 1 2021, 10:27 AM
xndcn edited reviewers, added: sammccall; removed: labath.Jul 6 2021, 8:26 AM
xndcn removed a reviewer: lhames.
sammccall accepted this revision.Jul 6 2021, 11:34 PM

LG thanks!
I guess this didn't cause problems so far because usage of const Expected is rare.

(next time please upload with full context)

llvm/unittests/Support/ErrorTest.cpp
574

Nit: unchecked (typo)

This revision is now accepted and ready to land.Jul 6 2021, 11:34 PM
xndcn updated this revision to Diff 356973.Jul 7 2021, 8:21 AM

@sammccall Thanks! Fixed 3 typo.

This revision was automatically updated to reflect the committed changes.