diff options
| author | Eric Christopher <echristo@apple.com> | 2012-01-26 07:11:58 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2012-01-26 07:11:58 +0000 |
| commit | f59218e5d96ad5f0bfaae84411ee42fabe7b2e68 (patch) | |
| tree | ebb690faa0e9e81a4a97516e6057e9e9e03efd04 /clang/lib/CodeGen | |
| parent | e6a602dfab87663ef1b50da848f999e03f31b7c1 (diff) | |
| download | bcm5719-llvm-f59218e5d96ad5f0bfaae84411ee42fabe7b2e68.tar.gz bcm5719-llvm-f59218e5d96ad5f0bfaae84411ee42fabe7b2e68.zip | |
Use createRecordFwdDecl here since that's what we're doing.
llvm-svn: 149051
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 6a775ccba64..2ddfd310835 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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); |

