diff options
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index c9a718b5278..a82d5cea635 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -1468,8 +1468,7 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) { const Type* BaseType = Base->getType().getTypePtrOrNull(); if (BaseType && Tok.is(tok::l_paren) && (BaseType->isFunctionType() || - BaseType->getAsPlaceholderType()->getKind() == - BuiltinType::BoundMember)) { + BaseType->isSpecificPlaceholderType(BuiltinType::BoundMember))) { Diag(OpLoc, diag::err_function_is_not_record) << (OpKind == tok::arrow) << Base->getSourceRange() << FixItHint::CreateRemoval(OpLoc); |