Skip to content

Commit f4bcbdf

Browse files
committed
Suppress GCC Wdangling-else warning on gtest macros
See google/googletest#1119
1 parent 8b0bd54 commit f4bcbdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/unittests/Support/CrashRecoveryTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ TEST(CrashRecoveryTest, LimitedStackTrace) {
109109
std::string Str = RawStream.str();
110110
// FIXME: Handle "Depth" parameter in PrintStackTrace() function
111111
// to print stack trace upto a specified Depth.
112-
if (!Triple(sys::getProcessTriple()).isOSWindows())
112+
if (!Triple(sys::getProcessTriple()).isOSWindows()) {
113113
EXPECT_EQ(std::string::npos, Str.find("#1"));
114+
}
114115
}
115116

116117
#ifdef _WIN32

0 commit comments

Comments
 (0)