[all-commits] [llvm/llvm-project] 5857fe: [clang][ASTImporter] Fix of possible crash "Did no...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Mon Oct 16 01:31:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5857fec27fe8ee5a48a2ee48a4d79a9e39b0332b
      https://github.com/llvm/llvm-project/commit/5857fec27fe8ee5a48a2ee48a4d79a9e39b0332b
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2023-10-16 (Mon, 16 Oct 2023)

  Changed paths:
    M clang/lib/AST/ASTImporter.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [clang][ASTImporter] Fix of possible crash "Did not find base!". (#67680)

A problem with AST import could lead to multiple instances of the same
template class specialization, with different template arguments. The
difference was caused by pointers to different declarations of the same
function.
Problem is fixed by using the canonical declaration at import.

Co-authored-by: Balázs Kéri <balazs.keri at ericsson.com>




More information about the All-commits mailing list