Use createRecordFwdDecl here since that's what we're doing.

llvm-svn: 149051
This commit is contained in:
Eric Christopher 2012-01-26 07:11:58 +00:00
parent e6a602dfab
commit f59218e5d9
1 changed files with 2 additions and 9 deletions

View File

@ -1147,15 +1147,8 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty) {
// If this is just a forward declaration, construct an appropriately
// marked node and just return it.
if (!RD->getDefinition()) {
llvm::DIType FwdDecl =
DBuilder.createStructType(RDContext, RDName,
DefUnit, Line, 0, 0,
llvm::DIDescriptor::FlagFwdDecl,
llvm::DIArray());
return FwdDecl;
}
if (!RD->getDefinition())
return createRecordFwdDecl(RD, RDContext);
llvm::DIType FwdDecl = DBuilder.createTemporaryType(DefUnit);