summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-02-18 00:37:07 +0000
committerChad Rosier <mcrosier@apple.com>2012-02-18 00:37:07 +0000
commitf0cccf5bdba0b585e088d77f17fc4560bc4cda81 (patch)
treed2ba07a9e9168f714403b11d57a5f7cf13a5d860 /clang/lib/CodeGen/CodeGenFunction.cpp
parentd3e45fc363e77aa9ba635d3d561a5f4367d78fa4 (diff)
downloadbcm5719-llvm-f0cccf5bdba0b585e088d77f17fc4560bc4cda81.tar.gz
bcm5719-llvm-f0cccf5bdba0b585e088d77f17fc4560bc4cda81.zip
Remove redundant check.
llvm-svn: 150855
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 28c5935de04..47176bd8ecc 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -428,9 +428,8 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
if (isa<CXXMethodDecl>(FD) && cast<CXXMethodDecl>(FD)->isInstance())
CGM.getCXXABI().BuildInstanceFunctionParams(*this, ResTy, Args);
- if (FD->getNumParams())
- for (unsigned i = 0, e = FD->getNumParams(); i != e; ++i)
- Args.push_back(FD->getParamDecl(i));
+ for (unsigned i = 0, e = FD->getNumParams(); i != e; ++i)
+ Args.push_back(FD->getParamDecl(i));
SourceRange BodyRange;
if (Stmt *Body = FD->getBody()) BodyRange = Body->getSourceRange();
OpenPOWER on IntegriCloud