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 | 1c286f6d8f77216cc78ea96e80623b189cc2bcd2 (patch) | |
tree | 9a8154b3cecf4d5f05748760628de36cdde284d0 /clang/lib/CodeGen | |
parent | 80bec83d8db7ea6c35f2c2cfdfd619ebd290e4e4 (diff) | |
download | bcm5719-llvm-1c286f6d8f77216cc78ea96e80623b189cc2bcd2.tar.gz bcm5719-llvm-1c286f6d8f77216cc78ea96e80623b189cc2bcd2.zip |
PR19623: Support typedefs (and alias templates) of void.
llvm-svn: 207781
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 86e76daf0f4..f41fac80a27 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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(); |