[all-commits] [llvm/llvm-project] 3ff86f: [NFC] Start saving InstantiatedFromDecl in non-tem...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri Jul 22 12:37:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ff86f961094306d1a3f219a44614e9cfd1dbd6b
      https://github.com/llvm/llvm-project/commit/3ff86f961094306d1a3f219a44614e9cfd1dbd6b
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M clang/include/clang/AST/Decl.h
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/AST/Decl.cpp
    M clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp

  Log Message:
  -----------
  [NFC] Start saving InstantiatedFromDecl in non-template functions

In cases where a non-template function is defined inside a function
template, we don't have information about the original uninstantiated
version.  In the case of concepts instantiation, we will need the
ability to get back to the original template.  This patch splits a piece
of the deferred concepts instantaition patch off to accomplish the
storage of this, with minor runtime overhead, and zero additional
storage.




More information about the All-commits mailing list