================ @@ -54,8 +54,9 @@ IdentifierInfo *Parser::getSEHExceptKeyword() { } Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) - : PP(pp), PreferredType(pp.isCodeCompletionEnabled()), Actions(actions), - Diags(PP.getDiagnostics()), StackHandler(Diags), + : PP(pp), + PreferredType(&actions.getASTContext(), pp.isCodeCompletionEnabled()), ---------------- zyn0217 wrote:
nit: I think we have a preference of using references than pointers if it is known to be non-null. https://github.com/llvm/llvm-project/pull/130473 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits