[all-commits] [llvm/llvm-project] 8a3446: [Concepts] Fix ConceptSpecializationExpr profiling...

Saar Raz via All-commits all-commits at lists.llvm.org
Thu Jan 16 03:41:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a3446746098ba29348bb8f85357dd0b466a6d6e
      https://github.com/llvm/llvm-project/commit/8a3446746098ba29348bb8f85357dd0b466a6d6e
  Author: Saar Raz <saar at raz.email>
  Date:   2020-01-16 (Thu, 16 Jan 2020)

  Changed paths:
    M clang/lib/AST/StmtProfile.cpp

  Log Message:
  -----------
  [Concepts] Fix ConceptSpecializationExpr profiling crash

ConceptSpecializationExprs (CSEs) were being created with nullptr
TemplateArgsAsWritten during TemplateTemplateParmDecl canonicalization, and
we were relying on them during profiling which caused sporadic crashes
in test/CXX/.../temp.arg.template/p3-2a.cpp introduced in D44352.

Change profiling of CSEs to instead rely on the actual converted template
arguments and concept named.




More information about the All-commits mailing list