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

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Mon Oct 12 16:49:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cffb0dd54d41d8e249d2009467c4beb5b681ba26
      https://github.com/llvm/llvm-project/commit/cffb0dd54d41d8e249d2009467c4beb5b681ba26
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/include/clang/Sema/Template.h
    M clang/lib/Sema/SemaTemplate.cpp
    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




More information about the All-commits mailing list