This is an archive of the discontinued LLVM Phabricator instance.

Fix "control reaches end of non-void function" warnings on ppc64le
ClosedPublic

Authored by zhaomo on Jun 2 2021, 3:52 PM.

Diff Detail

Event Timeline

zhaomo created this revision.Jun 2 2021, 3:52 PM
zhaomo requested review of this revision.Jun 2 2021, 3:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2021, 3:52 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zhaomo edited the summary of this revision. (Show Details)Jun 2 2021, 4:30 PM
ymandel accepted this revision.Jun 2 2021, 4:38 PM

Thanks!

This revision is now accepted and ready to land.Jun 2 2021, 4:38 PM

Actually, the removal of the default case in the switch gives this warning:
...llvm-project/clang/lib/ASTMatchers/GtestMatchers.cpp:102:11: warning: enumeration value 'Assert' not handled in switch [-Wswitch]

I'll reinstate the default case before comitting the patch.

This revision was landed with ongoing or failed builds.Jun 2 2021, 5:54 PM
This revision was automatically updated to reflect the committed changes.