summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-31 08:12:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-31 08:12:03 +0000
commit0c248e7ed89fa993c69444a5db740695092bd761 (patch)
tree29bc7ffeb0f0b65e66a33dc6e1f4d66cdee45123 /clang/lib/CodeGen/CGDebugInfo.cpp
parentce71638c0d9528fdd4253c7a6ea24f777a20af61 (diff)
downloadbcm5719-llvm-0c248e7ed89fa993c69444a5db740695092bd761.tar.gz
bcm5719-llvm-0c248e7ed89fa993c69444a5db740695092bd761.zip
Debug info: Bug fix, function types should always include the return
type. llvm-svn: 58497
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index e9f3aa299ba..7641c4ee15f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud