This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Add return values after assert(false) in some experimental tests
ClosedPublic

Authored by mstorsjo on Mar 23 2021, 1:46 PM.

Details

Summary

When building in MSVC mode (in release mode), the assert(false) don't
make the end of the function unreachable, so add return statements to
silence compiler warnings (treated as errors).

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Mar 23 2021, 1:46 PM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2021, 1:46 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
curdeius accepted this revision as: curdeius.Mar 23 2021, 1:53 PM
curdeius added a subscriber: curdeius.

LGTM.

Quuxplusone accepted this revision.Mar 23 2021, 4:39 PM
Quuxplusone added a subscriber: Quuxplusone.

Ship it! (Bonus points if you replace virtual by override in all cases; these tests are C++11-and-later-only.)

This revision is now accepted and ready to land.Mar 23 2021, 4:39 PM
mstorsjo updated this revision to Diff 332877.Mar 24 2021, 12:10 AM

Rerun CI after changing virtual into override

This revision was landed with ongoing or failed builds.Mar 24 2021, 2:44 AM
This revision was automatically updated to reflect the committed changes.