summaryrefslogtreecommitdiffstats
path: root/unittests/Support/ScaledNumberTest.cpp
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2017-05-20 00:02:08 +0000
committerGalina Kistanova <gkistanova@gmail.com>2017-05-20 00:02:08 +0000
commit971abf157604914da7b587b5cb989f42febdf545 (patch)
tree7c3a1724d37fc91e2b754ffb31f99a0cc6c746d1 /unittests/Support/ScaledNumberTest.cpp
parent82673ec6c62144c0ac2f3370985a8e0b98f418c3 (diff)
Cosmetic. Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/ScaledNumberTest.cpp')
-rw-r--r--unittests/Support/ScaledNumberTest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/Support/ScaledNumberTest.cpp b/unittests/Support/ScaledNumberTest.cpp
index 2f38b2a40fb8..9e3f6de6bd17 100644
--- a/unittests/Support/ScaledNumberTest.cpp
+++ b/unittests/Support/ScaledNumberTest.cpp
@@ -335,10 +335,12 @@ TEST(ScaledNumberHelpersTest, matchScales) {
EXPECT_EQ(SOut, matchScales(LDx, LSx, RDx, RSx)); \
EXPECT_EQ(LDy, LDx); \
EXPECT_EQ(RDy, RDx); \
- if (LDy) \
+ if (LDy) { \
EXPECT_EQ(Sy, LSx); \
- if (RDy) \
+ } \
+ if (RDy) { \
EXPECT_EQ(Sy, RSx); \
+ } \
} while (false)
MATCH_SCALES(uint32_t, 0, 0, 0, 0, 0, 0, 0);