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

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.

Differential Revision: https://reviews.llvm.org/D113346
This commit is contained in:
Luke Benes 2021-11-07 00:06:55 +03:00 committed by Roman Lebedev
parent 9f0194be45
commit 2249ecee8d
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 2 additions and 1 deletions

View File

@ -1204,8 +1204,9 @@ TEST(InstructionsTest, ShuffleMaskIsReplicationMask_Exhaustive_Correctness) {
int Elt = std::get<0>(I);
int ActualElt = std::get<0>(I);
if (Elt != -1)
if (Elt != -1) {
EXPECT_EQ(Elt, ActualElt);
}
}
return /*Abort=*/false;