diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2017-06-15 21:00:40 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2017-06-15 21:00:40 +0000 |
commit | 7438bc918d71c6b32ca7e99572e9aee5d4e9ad12 (patch) | |
tree | 88e30b3018ebe2008f8049e74a3d92794a8c6523 /unittests/CodeGen | |
parent | 48370ee21fd76d0515908427256b534a2622e83b (diff) |
Added braces to work around gcc warning in googletest: suggest explicit braces to avoid ambiguous 'else'. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CodeGen')
-rw-r--r-- | unittests/CodeGen/LowLevelTypeTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/CodeGen/LowLevelTypeTest.cpp b/unittests/CodeGen/LowLevelTypeTest.cpp index 428d6b93f79..11555464290 100644 --- a/unittests/CodeGen/LowLevelTypeTest.cpp +++ b/unittests/CodeGen/LowLevelTypeTest.cpp @@ -137,8 +137,9 @@ TEST(LowLevelTypeTest, Vector) { if ((Elts % 2) == 0) { EXPECT_EQ(S * (Elts / 2), HalfEltIfEvenTy.getSizeInBits()); EXPECT_EQ(S, HalfEltIfEvenTy.getScalarSizeInBits()); - if (Elts > 2) + if (Elts > 2) { EXPECT_EQ(Elts / 2, HalfEltIfEvenTy.getNumElements()); + } } EXPECT_EQ(S * (Elts * 2), DoubleEltTy.getSizeInBits()); |