diff options
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 4e27ca0cea5..fef01a4030f 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -1687,7 +1687,7 @@ Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { if (ParseExpressionList(Exprs, CommaLocs, [&] { Actions.CodeCompleteConstructor( getCurScope(), TypeRep.get()->getCanonicalTypeInternal(), - DS.getEndLoc(), Exprs); + DS.getEndLoc(), Exprs, T.getOpenLocation()); })) { SkipUntil(tok::r_paren, StopAtSemi); return ExprError(); @@ -2821,7 +2821,7 @@ Parser::ParseCXXNewExpression(bool UseGlobal, SourceLocation Start) { DeclaratorInfo).get(); Actions.CodeCompleteConstructor( getCurScope(), TypeRep.get()->getCanonicalTypeInternal(), - DeclaratorInfo.getEndLoc(), ConstructorArgs); + DeclaratorInfo.getEndLoc(), ConstructorArgs, ConstructorLParen); })) { SkipUntil(tok::semi, StopAtSemi | StopBeforeMatch); return ExprError(); |