aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-01-08 14:58:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-01-08 14:58:32 +0000
commitef3c69406f73b892a3d5023ea42b3d7ed9c99d33 (patch)
treef83eef4af342d4e4f135eeed913d2b7d8e2f1e70 /lib/AST/ASTContext.cpp
parent26f7e78018ed6ce8aa11b5eef94c772ca4ee48bf (diff)
Clear the LV cache when setting the instantiated from link.
Fixes pr14835. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 426e67cc79..dc398f36ec 100644
--- a/lib/AST/ASTContext.cpp
+++ b/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(