[all-commits] [llvm/llvm-project] bd851e: [clang] Avoid crash due to unimplemented Structura...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri May 24 07:33:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd851eec34749023e5d967c03847df1635bbfa57
      https://github.com/llvm/llvm-project/commit/bd851eec34749023e5d967c03847df1635bbfa57
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ASTDiagnostic.cpp
    A clang/test/Misc/diag-template-diffing-cxx11.cpp
    A clang/test/Misc/diag-template-diffing-cxx26.cpp
    R clang/test/Misc/diag-template-diffing.cpp

  Log Message:
  -----------
  [clang] Avoid crash due to unimplemented StructuralValue support in the template differ (#93265)

This was not implemented in
https://github.com/llvm/llvm-project/pull/78041 when StructuralValue
TemplateArguments were originally added.

This patch does not implement this functionality, it just falls back to
the expression when possible.

Otherwise, such as when dealing with canonical types to begin with, this
will just ignore the argument as if it wasn't even there.

Fixes https://github.com/llvm/llvm-project/issues/93068



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list