Fix gcc "-Wdangling-else" warning. NFCI.

llvm-svn: 359551
This commit is contained in:
Simon Pilgrim 2019-04-30 10:57:37 +00:00
parent 85f61257d2
commit 648a8cfe70
1 changed files with 2 additions and 1 deletions

View File

@ -217,8 +217,9 @@ TEST(LookupTest, replaceNestedClassName) {
// `x::y::Foo` in c.cc [1], it should not make "Foo" at [0] ambiguous because
// it's not visible at [0].
Visitor.OnRecordTypeLoc = [&](RecordTypeLoc Type) {
if (Type.getDecl()->getQualifiedNameAsString() == "x::y::Old")
if (Type.getDecl()->getQualifiedNameAsString() == "x::y::Old") {
EXPECT_EQ("Foo", replaceRecordTypeLoc(Type, "::x::Foo"));
}
};
Visitor.runOver(R"(
// a.h