@@ -293,15 +293,14 @@ static CallExpr *create_call_once_lambda_call(ASTContext &C, ASTMaker M,
293293 FunctionDecl *callOperatorDecl = CallbackDecl->getLambdaCallOperator ();
294294 assert (callOperatorDecl != nullptr );
295295
296- DeclRefExpr *callOperatorDeclRef =
297- DeclRefExpr::Create (/* Ctx =*/ C,
298- /* QualifierLoc =*/ NestedNameSpecifierLoc (),
299- /* TemplateKWLoc =*/ SourceLocation (),
300- const_cast <FunctionDecl *>(callOperatorDecl),
301- /* RefersToEnclosingVariableOrCapture=*/ false ,
302- /* NameLoc =*/ SourceLocation (),
303- /* T =*/ callOperatorDecl->getType (),
304- /* VK =*/ VK_LValue);
296+ DeclRefExpr *callOperatorDeclRef = DeclRefExpr::Create (
297+ /* Ctx =*/ C,
298+ /* QualifierLoc =*/ NestedNameSpecifierLoc (),
299+ /* TemplateKWLoc =*/ SourceLocation (), callOperatorDecl,
300+ /* RefersToEnclosingVariableOrCapture=*/ false ,
301+ /* NameLoc =*/ SourceLocation (),
302+ /* T =*/ callOperatorDecl->getType (),
303+ /* VK =*/ VK_LValue);
305304
306305 return CXXOperatorCallExpr::Create (
307306 /* AstContext=*/ C, OO_Call, callOperatorDeclRef,
0 commit comments