summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-15 20:17:25 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-15 20:17:25 +0000
commit4e7ef80e68f9d3a984b354e152eabe71be9b6b44 (patch)
tree6be6c7f4f709fef0187bec461204d4527a08a411 /clang/lib/CodeGen/CGDebugInfo.cpp
parentbbecd09658b7a19626f5a86a64428ca0b851c91f (diff)
downloadbcm5719-llvm-4e7ef80e68f9d3a984b354e152eabe71be9b6b44.tar.gz
bcm5719-llvm-4e7ef80e68f9d3a984b354e152eabe71be9b6b44.zip
DebugInfo: Revert change to the return type of createRecordFwdDecl
It still does only return DICompositeType, but I've no need to make that change right now. llvm-svn: 188482
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 81354b86cab..5ac4a5dccbf 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -602,11 +602,9 @@ llvm::DIType CGDebugInfo::CreateType(const PointerType *Ty,
}
// Creates a forward declaration for a RecordDecl in the given context.
-llvm::DICompositeType
-CGDebugInfo::getOrCreateRecordFwdDecl(const RecordDecl *RD,
- llvm::DIDescriptor Ctx) {
- llvm::DICompositeType T(getTypeOrNull(CGM.getContext().getRecordType(RD)));
- if (T)
+llvm::DIType CGDebugInfo::getOrCreateRecordFwdDecl(const RecordDecl *RD,
+ llvm::DIDescriptor Ctx) {
+ if (llvm::DIType T = getTypeOrNull(CGM.getContext().getRecordType(RD)))
return T;
llvm::DIFile DefUnit = getOrCreateFile(RD->getLocation());
unsigned Line = getLineNumber(RD->getLocation());
OpenPOWER on IntegriCloud