Fix all the silly things I committed in r184509

llvm-svn: 184512
This commit is contained in:
David Blaikie 2013-06-21 00:59:44 +00:00
parent 4ace1a74c0
commit f7bcb0c279
3 changed files with 5 additions and 4 deletions

View File

@ -1916,10 +1916,11 @@ void CGDebugInfo::completeFwdDecl(const RecordDecl &RD) {
if (DebugKind <= CodeGenOptions::LimitedDebugInfo)
return;
llvm::DIType T = getTypeOrNull(CGM.getContext().getRecordType(&RD));
QualType QTy = CGM.getContext().getRecordType(&RD);
llvm::DIType T = getTypeOrNull(QTy);
if (T.Verify() && T.isForwardDecl())
getOrCreateType(QTy, getOrCreateFile(RD.getLocation());
getOrCreateType(QTy, getOrCreateFile(RD.getLocation()));
}
/// getCachedInterfaceTypeOrNull - Get the type from the interface

View File

@ -289,7 +289,7 @@ public:
llvm::DIType getOrCreateInterfaceType(QualType Ty,
SourceLocation Loc);
void completeFwdDecls(const RecordDecl *TD);
void completeFwdDecl(const RecordDecl &TD);
private:
/// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration.

View File

@ -264,7 +264,7 @@ void CodeGenTypes::UpdateCompletedType(const TagDecl *TD) {
// If necessary, provide the full definition of a type only used with a
// declaration so far.
if (CGDebugInfo *DI = CGM.getModuleDebugInfo())
DI->completeFwdDecls(RD);
DI->completeFwdDecl(*RD);
}
static llvm::Type *getTypeForFormat(llvm::LLVMContext &VMContext,