From ef5ea1df4e65d7a885e77ed9b7a643b896de15a2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 8 Jan 2013 14:58:32 +0000 Subject: Clear the LV cache when setting the instantiated from link. Fixes pr14835. llvm-svn: 171857 --- clang/lib/AST/ASTContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 426e67cc79a..dc398f36ecd 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -949,6 +949,7 @@ ASTContext::setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl, "Already noted what static data member was instantiated from"); InstantiatedFromStaticDataMember[Inst] = new (*this) MemberSpecializationInfo(Tmpl, TSK, PointOfInstantiation); + Inst->ClearLVCache(); } FunctionDecl *ASTContext::getClassScopeSpecializationPattern( -- cgit v1.2.3