Update type cache when a type is completed.

Radar 9168773

llvm-svn: 128150
This commit is contained in:
Devang Patel
2011-03-23 16:29:39 +00:00
parent c4f0ab397c
commit 945b8aed2a
4 changed files with 28 additions and 5 deletions

View File

@@ -131,6 +131,13 @@ void CodeGenModule::Release() {
EmitDeclMetadata();
}
void CodeGenModule::UpdateCompletedType(const TagDecl *TD) {
// Make sure that this type is translated.
Types.UpdateCompletedType(TD);
if (DebugInfo)
DebugInfo->UpdateCompletedType(TD);
}
llvm::MDNode *CodeGenModule::getTBAAInfo(QualType QTy) {
if (!TBAA)
return 0;