From: Daniel Dunbar Date: Fri, 31 Oct 2008 08:12:03 +0000 (+0000) Subject: Debug info: Bug fix, function types should always include the return X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9881cf0f09aeada2894b203c854bd12b1babfd5d;p=clang Debug info: Bug fix, function types should always include the return type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58497 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index e9f3aa299b..7641c4ee15 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -356,7 +356,7 @@ CGDebugInfo::getOrCreateFunctionType(QualType type, llvm::CompileUnitDesc *Unit) // Get result type. const FunctionType *FT = type->getAsFunctionType(); llvm::TypeDesc *ArgTy = getOrCreateType(FT->getResultType(), Unit); - if (ArgTy) Elements.push_back(ArgTy); + Elements.push_back(ArgTy); // Set up remainder of arguments. if (type->getTypeClass() == Type::FunctionProto) {