[all-commits] [llvm/llvm-project] 5729e6: Fix ArgsAsWritten being null for ConceptSpecializa...

Walter Gray via All-commits all-commits at lists.llvm.org
Thu May 18 19:33:51 PDT 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5729e63ac7b47c6ad40f904fedafad3c07cf71ea
      https://github.com/llvm/llvm-project/commit/5729e63ac7b47c6ad40f904fedafad3c07cf71ea
  Author: Walter Gray <yeswalrus at gmail.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M clang/include/clang/AST/ExprConcepts.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ExprConcepts.cpp
    M clang/test/PCH/cxx2a-constraints.cpp

  Log Message:
  -----------
  Fix ArgsAsWritten being null for ConceptSpecializationExpr in certain
circumstances when parsing ASTs

Fix ArgsAsWritten being null for ConceptSpecializationExpr in certain
circumstances when parsing ASTs

ASTStmtWriter::VisitConceptSpecializationExpr specifically expects
getTemplateArgsAsWritten() to return true, which it wasn't when parsed
by ASTContext.cpp in certain edge cases.

Fixes: #61486

Differential Revision: https://reviews.llvm.org/D146678

(cherry picked from commit 1f48a1fce23551cc24f5b598af5994f5cfc6b6d0)

Add additional overload to prevent API break.




More information about the All-commits mailing list