diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-22 09:38:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-22 09:38:11 +0000 |
commit | 4fe5be028b723fedc28bb33be96cde1ab2574ee6 (patch) | |
tree | b95e6a6f98d1cd52f0934bb4bc0d78e35afc3e69 /lib/Sema/JumpDiagnostics.cpp | |
parent | 795b10062c2eaffae9e04241fb1a73cdbcb24a37 (diff) |
ArrayRef-icize the function arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/JumpDiagnostics.cpp')
-rw-r--r-- | lib/Sema/JumpDiagnostics.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/JumpDiagnostics.cpp b/lib/Sema/JumpDiagnostics.cpp index 54013a8e9c..9a1d023fec 100644 --- a/lib/Sema/JumpDiagnostics.cpp +++ b/lib/Sema/JumpDiagnostics.cpp @@ -74,7 +74,7 @@ private: void VerifyJumps(); void VerifyIndirectJumps(); - void NoteJumpIntoScopes(const SmallVectorImpl<unsigned> &ToScopes); + void NoteJumpIntoScopes(ArrayRef<unsigned> ToScopes); void DiagnoseIndirectJump(IndirectGotoStmt *IG, unsigned IGScope, LabelDecl *Target, unsigned TargetScope); void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, @@ -669,8 +669,7 @@ static void DiagnoseIndirectJumpStmt(Sema &S, IndirectGotoStmt *Jump, } /// Produce note diagnostics for a jump into a protected scope. -void JumpScopeChecker::NoteJumpIntoScopes( - const SmallVectorImpl<unsigned> &ToScopes) { +void JumpScopeChecker::NoteJumpIntoScopes(ArrayRef<unsigned> ToScopes) { assert(!ToScopes.empty()); for (unsigned I = 0, E = ToScopes.size(); I != E; ++I) if (Scopes[ToScopes[I]].InDiag) |