]> granicus.if.org Git - clang/commit
Tie DefineVTablesUsed() in with recursive function instantiation so that we emit
authorNick Lewycky <nicholas@mxc.ca>
Thu, 25 Nov 2010 00:35:20 +0000 (00:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 25 Nov 2010 00:35:20 +0000 (00:35 +0000)
commit2a5f99eb4e2af771faacfceb9f78e230129c5e5a
tree8634c7998e24299a51169097cfec604e58d46208
parent0b9fb2f6b4845bfe5e25b576ae8f2ffa284f9cb1
Tie DefineVTablesUsed() in with recursive function instantiation so that we emit
a useful template instantiation stack. Fixes PR8640.

This also causes a slight change to where the "instantianted from" note shows up
in truly esoteric cases (see the change to test/SemaCXX/destructor.cpp), but
that isn't directly the fault of this patch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120135 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/Sema.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/destructor.cpp
test/SemaCXX/vtable-instantiation.cc [new file with mode: 0644]