This is an archive of the discontinued LLVM Phabricator instance.

[IR][ShuffleVector] Fix Wdangling-else warning in InstructionsTest
ClosedPublic

Authored by lbenes on Nov 6 2021, 8:49 AM.

Details

Summary

Fix a dangling else that gcc-11 warned about. The EXPECT_EQ macro
expands to an if-else, so the whole construction contains a hidden
dangling else.

Diff Detail

Event Timeline

lbenes requested review of this revision.Nov 6 2021, 8:49 AM
lbenes created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 6 2021, 8:49 AM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 6 2021, 2:07 PM
This revision was automatically updated to reflect the committed changes.