[PATCH] D113346: [IR][ShuffleVector] Fix Wdangling-else warning in InstructionsTest
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 6 14:07:39 PDT 2021
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2249ecee8d9a: [IR][ShuffleVector] Fix Wdangling-else warning in InstructionsTest (authored by lbenes, committed by lebedev.ri).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113346/new/
https://reviews.llvm.org/D113346
Files:
llvm/unittests/IR/InstructionsTest.cpp
Index: llvm/unittests/IR/InstructionsTest.cpp
===================================================================
--- llvm/unittests/IR/InstructionsTest.cpp
+++ llvm/unittests/IR/InstructionsTest.cpp
@@ -1204,8 +1204,9 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113346.385294.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211106/a9f5c6fc/attachment.bin>
More information about the llvm-commits
mailing list