Skip to content

Commit

Permalink
Cosmetic. Added braces to address gcc warning: suggest explicit brace…
Browse files Browse the repository at this point in the history
…s to avoid ambiguous 'else' [-Wdangling-else].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303471 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed May 20, 2017
1 parent 82673ec commit 971abf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions unittests/Support/ScaledNumberTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 971abf1

Please sign in to comment.