diff options
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index b78005c..8b40408 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -172,9 +172,8 @@ public: if (Diags.hasErrorOccurred()) return; - if (CodeGen::CGDebugInfo *DI = Builder->getModuleDebugInfo()) - if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) - DI->completeRequiredType(RD); + if (const RecordDecl *RD = dyn_cast<RecordDecl>(D)) + Builder->getModuleDebugInfo()->completeRequiredType(RD); } /// Emit a container holding the serialized AST. |