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 | fcae62d6eeabf0eb926555d56e6a79d880ef094b (patch) | |
tree | b8c21b18da971b9c5ea78ddef9a16c1ddd1500db /llvm/unittests/ADT/StringRefTest.cpp | |
parent | da504b794cf3154ec9b3f0fb728f1b3880a8bb77 (diff) | |
download | llvm-fcae62d6eeabf0eb926555d56e6a79d880ef094b.zip llvm-fcae62d6eeabf0eb926555d56e6a79d880ef094b.tar.gz llvm-fcae62d6eeabf0eb926555d56e6a79d880ef094b.tar.bz2 |
Added braces to work around gcc warning in googletest: suggest explicit braces to avoid ambiguous 'else'. NFC.
llvm-svn: 305506
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringRefTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index e308f2d..0684afe 100644 --- a/llvm/unittests/ADT/StringRefTest.cpp +++ b/llvm/unittests/ADT/StringRefTest.cpp @@ -882,8 +882,9 @@ TEST(StringRefTest, getAsDouble) { double Result; StringRef S(Entry.Str); EXPECT_EQ(Entry.ShouldFail, S.getAsDouble(Result, Entry.AllowInexact)); - if (!Entry.ShouldFail) + if (!Entry.ShouldFail) { EXPECT_EQ(Result, Entry.D); + } } } |