From 9881cf0f09aeada2894b203c854bd12b1babfd5d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 31 Oct 2008 08:12:03 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1