diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index e1b63423496..b2f3120ec38 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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 |