mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[Remarks] Fix warning for ambigous else
behind EXPECT macro
http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/31902/steps/ninja%20check%201/logs/stdio llvm-svn: 375015
This commit is contained in:
parent
a863cbfe09
commit
f765621f2a
@ -82,11 +82,13 @@ void parseExpectErrorMeta(StringRef Buf, const char *Error, CmpType Cmp,
|
||||
|
||||
// Use a case insensitive comparision due to case differences in error strings
|
||||
// for different OSs.
|
||||
if (Cmp == CmpType::Equal)
|
||||
if (Cmp == CmpType::Equal) {
|
||||
EXPECT_EQ(StringRef(Stream.str()).lower(), StringRef(Error).lower());
|
||||
}
|
||||
|
||||
if (Cmp == CmpType::Contains)
|
||||
if (Cmp == CmpType::Contains) {
|
||||
EXPECT_TRUE(StringRef(Stream.str()).contains(StringRef(Error)));
|
||||
}
|
||||
}
|
||||
|
||||
TEST(YAMLRemarks, ParsingEmpty) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user