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 e9f3aa2..7641c4e 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -356,7 +356,7 @@
   // 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) {