diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-01 18:25:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-01 18:25:19 +0000 |
commit | 387e171138d603c3e229d6fc89fff697c2a57b51 (patch) | |
tree | cbc07a7eb55f394772bb37e3ffff60eca969bb84 /lib/CodeGen/CGDebugInfo.cpp | |
parent | b9351d0cbc5b143543dba1b659ac945f13358724 (diff) | |
download | clang-387e171138d603c3e229d6fc89fff697c2a57b51.tar.gz clang-387e171138d603c3e229d6fc89fff697c2a57b51.tar.bz2 clang-387e171138d603c3e229d6fc89fff697c2a57b51.tar.xz |
PR19623: Support typedefs (and alias templates) of void.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 86e76daf0f..f41fac80a2 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -722,7 +722,6 @@ llvm::DIType CGDebugInfo::CreateType(const BlockPointerType *Ty, llvm::DIType CGDebugInfo::CreateType(const TemplateSpecializationType *Ty, llvm::DIFile Unit) { assert(Ty->isTypeAlias()); llvm::DIType Src = getOrCreateType(Ty->getAliasedType(), Unit); - assert(Src); SmallString<128> NS; llvm::raw_svector_ostream OS(NS); @@ -749,8 +748,6 @@ llvm::DIType CGDebugInfo::CreateType(const TypedefType *Ty, llvm::DIFile Unit) { // Typedefs are derived from some other type. If we have a typedef of a // typedef, make sure to emit the whole chain. llvm::DIType Src = getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); - if (!Src) - return llvm::DIType(); // We don't set size information, but do specify where the typedef was // declared. SourceLocation Loc = Ty->getDecl()->getLocation(); |