summaryrefslogtreecommitdiffstats
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
commite7cfcbd5dc9da3643a69548526d5955afc987a47 (patch)
tree4bb88c6f5d66a7277efac15fdbe33b6b191b9384
parent981a7998966224d3661f381f7609e20c3898884c (diff)
downloadbcm5719-llvm-e7cfcbd5dc9da3643a69548526d5955afc987a47.tar.gz
bcm5719-llvm-e7cfcbd5dc9da3643a69548526d5955afc987a47.zip
Cosmetic. Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else].
llvm-svn: 303471
-rw-r--r--llvm/unittests/Support/ScaledNumberTest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/unittests/Support/ScaledNumberTest.cpp b/llvm/unittests/Support/ScaledNumberTest.cpp
index 2f38b2a40fb..9e3f6de6bd1 100644
--- a/llvm/unittests/Support/ScaledNumberTest.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud