[cfe-commits] r58497 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Daniel Dunbar
daniel at zuster.org
Fri Oct 31 01:12:03 PDT 2008
Author: ddunbar
Date: Fri Oct 31 03:12:03 2008
New Revision: 58497
URL: http://llvm.org/viewvc/llvm-project?rev=58497&view=rev
Log:
Debug info: Bug fix, function types should always include the return
type.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=58497&r1=58496&r2=58497&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Oct 31 03:12:03 2008
@@ -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) {
More information about the cfe-commits
mailing list