mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 13:40:43 +00: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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2262bbc7ab
commit
a55be6b48f
@ -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…
Reference in New Issue
Block a user