Suppress GCC Wdangling-else warning on gtest macros
authorReid Kleckner <rnk@google.com>
Wed, 6 Jan 2021 01:32:56 +0000 (17:32 -0800)
committerReid Kleckner <rnk@google.com>
Wed, 6 Jan 2021 01:32:56 +0000 (17:32 -0800)
See https://github.com/google/googletest/issues/1119

llvm/unittests/Support/CrashRecoveryTest.cpp

index 864b852cf2d2d4df75af1eff92fdf0d7933fd179..c38fa0b4cb25b76d651a668454c1d7b611f318e2 100644 (file)
@@ -109,8 +109,9 @@ TEST(CrashRecoveryTest, LimitedStackTrace) {
   std::string Str = RawStream.str();
   // FIXME: Handle "Depth" parameter in PrintStackTrace() function
   // to print stack trace upto a specified Depth.
-  if (!Triple(sys::getProcessTriple()).isOSWindows())
+  if (!Triple(sys::getProcessTriple()).isOSWindows()) {
     EXPECT_EQ(std::string::npos, Str.find("#1"));
+  }
 }
 
 #ifdef _WIN32