[all-commits] [llvm/llvm-project] fc23bc: [SemaTemplate] Stop passing insertion position aro...

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Mon Dec 14 13:57:27 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: fc23bc9b30bff900cb279318e8e60050688606f9
      https://github.com/llvm/llvm-project/commit/fc23bc9b30bff900cb279318e8e60050688606f9
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/SemaTemplate/instantiate-var-template.cpp

  Log Message:
  -----------
  [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation

They can get stale at use time because of updates from other recursive
specializations. Instead, rely on the existence of previous declarations to add
the specialization.

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

(cherry picked from commit cffb0dd54d41d8e249d2009467c4beb5b681ba26)

This is a re-commit of 8ac709578067f77a7036fe50610277516fa36d50 with
some modifications to avoid changing the clang API.




More information about the All-commits mailing list