[IR][ShuffleVector] Fix Wdangling-else warning in InstructionsTest
authorLuke Benes <lukebenes@hotmail.com>
Sat, 6 Nov 2021 21:06:55 +0000 (00:06 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 6 Nov 2021 21:07:01 +0000 (00:07 +0300)
commit2249ecee8d9a6237f51485bd39f01ba031575987
tree1445aa5f0c1deff035eeaeacb8e71964356be726
parent9f0194be4570469ce830e6d581d21c75650562c7
[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
llvm/unittests/IR/InstructionsTest.cpp