forked from OSchip/llvm-project
Add explicit braces to silence warning about ambiguous 'else' inside the EXPECT_EQ macro. NFCI.
This commit is contained in:
parent
4eb47e3cd4
commit
0ce61d47c0
|
@ -659,10 +659,11 @@ TEST(SelectionTest, CreateAll) {
|
|||
AST.getASTContext(), AST.getTokens(), Test.point("ambiguous"),
|
||||
Test.point("ambiguous"), [&](SelectionTree T) {
|
||||
// Expect to see the right-biased tree first.
|
||||
if (Seen == 0)
|
||||
if (Seen == 0) {
|
||||
EXPECT_EQ("BinaryOperator", nodeKind(T.commonAncestor()));
|
||||
else if (Seen == 1)
|
||||
} else if (Seen == 1) {
|
||||
EXPECT_EQ("IntegerLiteral", nodeKind(T.commonAncestor()));
|
||||
}
|
||||
++Seen;
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue