From: Galina Kistanova Date: Sat, 20 May 2017 00:02:08 +0000 (+0000) Subject: Cosmetic. Added braces to address gcc warning: suggest explicit braces to avoid ambig... X-Git-Tag: llvmorg-5.0.0-rc1~4680 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7cfcbd5dc9da3643a69548526d5955afc987a47;p=platform%2Fupstream%2Fllvm.git Cosmetic. Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]. llvm-svn: 303471 --- diff --git a/llvm/unittests/Support/ScaledNumberTest.cpp b/llvm/unittests/Support/ScaledNumberTest.cpp index 2f38b2a..9e3f6de 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);