diff options
| author | Alp Toker <alp@nuanti.com> | 2014-07-07 09:02:20 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-07-07 09:02:20 +0000 |
| commit | 03376dc2c525c725323993fe0a17fd5d7313a9e7 (patch) | |
| tree | a91038a70d8500eeb9a225c6e443b682e0bcdd85 /clang/lib/Sema/SemaCodeComplete.cpp | |
| parent | 221285bde795a54552cabeb77a20a092a185b80b (diff) | |
| download | bcm5719-llvm-03376dc2c525c725323993fe0a17fd5d7313a9e7.tar.gz bcm5719-llvm-03376dc2c525c725323993fe0a17fd5d7313a9e7.zip | |
Switch over a few uses of param_begin() to parameters()
llvm-svn: 212442
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index e2149eddd44..3d250e3bef1 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -5322,7 +5322,7 @@ static QualType getPreferredArgumentTypeForMessageSend(ResultBuilder &Results, if (R.Priority <= BestPriority) { const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration); if (NumSelIdents <= Method->param_size()) { - QualType MyPreferredType = Method->param_begin()[NumSelIdents - 1] + QualType MyPreferredType = Method->parameters()[NumSelIdents - 1] ->getType(); if (R.Priority < BestPriority || PreferredType.isNull()) { BestPriority = R.Priority; @@ -6994,7 +6994,7 @@ void Sema::CodeCompleteObjCMethodDeclSelector(Scope *S, // Suggest parameter names we've seen before. unsigned NumSelIdents = SelIdents.size(); if (NumSelIdents && NumSelIdents <= MethList->Method->param_size()) { - ParmVarDecl *Param = MethList->Method->param_begin()[NumSelIdents-1]; + ParmVarDecl *Param = MethList->Method->parameters()[NumSelIdents-1]; if (Param->getIdentifier()) { CodeCompletionBuilder Builder(Results.getAllocator(), Results.getCodeCompletionTUInfo()); |

