diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 04:05:48 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 04:05:48 +0000 |
commit | 59f779213626990295f21b93d3f18f432513da34 (patch) | |
tree | cc77755b71dc773d2a39a20a94ba8336e3d1891c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f440d267e3e391b25bea2980d13f849f1fffeb99 (diff) | |
download | bcm5719-llvm-59f779213626990295f21b93d3f18f432513da34.tar.gz bcm5719-llvm-59f779213626990295f21b93d3f18f432513da34.zip |
Use more ArrayRefs
No functional change is intended, just a small refactoring.
llvm-svn: 273647
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 2dc4c12ce2e..e914d793559 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -949,7 +949,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, CGM.getCXXABI().buildThisParam(*this, Args); } - for (auto *Param : FD->params()) { + for (auto *Param : FD->parameters()) { Args.push_back(Param); if (!Param->hasAttr<PassObjectSizeAttr>()) continue; |