aboutsummaryrefslogtreecommitdiff
path: root/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
commit9881cf0f09aeada2894b203c854bd12b1babfd5d (patch)
tree3d72f8baac33a6cd660f163dc9a6615254551a15 /lib/CodeGen/CGDebugInfo.cpp
parentf0dfa8d1c55af6f59750328062c3b642c783c0e3 (diff)
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
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) {