]> granicus.if.org Git - clang/commitdiff
Debug info: Bug fix, function types should always include the return
authorDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 08:12:03 +0000 (08:12 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 08:12:03 +0000 (08:12 +0000)
type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58497 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index e9f3aa299ba541407c0d0d8c2e33015c7017068a..7641c4ee15f6b7cdab3af89705936940f03bcf1d 100644 (file)
@@ -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) {