[all-commits] [llvm/llvm-project] 05e95d: [clang][AST] Set correct DeclContext in ASTImporte...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Thu Jun 17 02:09:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05e95d2dd74973dd5163b7d44828fac61e416452
      https://github.com/llvm/llvm-project/commit/05e95d2dd74973dd5163b7d44828fac61e416452
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

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

  Log Message:
  -----------
  [clang][AST] Set correct DeclContext in ASTImporter lookup table for template params.

Template parameters are created in ASTImporter with the translation unit as DeclContext.
The DeclContext is later updated (by the create function of template classes).
ASTImporterLookupTable was not updated after these changes of the DC. The patch
adds update of the DeclContext in ASTImporterLookupTable.

Reviewed By: martong

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




More information about the All-commits mailing list