diff options
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
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) { |