diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-04 04:53:55 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-04 04:53:55 +0000 |
commit | e335f259498a550c73d3f77d9765cbe610a60b4e (patch) | |
tree | eabe6a8a456bf232adfde5932d669f4d69e7b1ca /clang/lib/Lex/PPMacroExpansion.cpp | |
parent | 8f70a9f892db8f18277b0f5127d9063de237debc (diff) | |
download | bcm5719-llvm-e335f259498a550c73d3f77d9765cbe610a60b4e.tar.gz bcm5719-llvm-e335f259498a550c73d3f77d9765cbe610a60b4e.zip |
SourceRanges are small and trivially copyable, don't them by reference.
llvm-svn: 249259
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index ba49437a060..3e834289f6c 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -871,7 +871,7 @@ MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, DiagnosticBuilder DB = Diag(MacroName, diag::note_init_list_at_beginning_of_macro_argument); - for (const SourceRange &Range : InitLists) + for (SourceRange Range : InitLists) DB << Range; } return nullptr; @@ -880,7 +880,7 @@ MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, return nullptr; DiagnosticBuilder DB = Diag(MacroName, diag::note_suggest_parens_for_macro); - for (const SourceRange &ParenLocation : ParenHints) { + for (SourceRange ParenLocation : ParenHints) { DB << FixItHint::CreateInsertion(ParenLocation.getBegin(), "("); DB << FixItHint::CreateInsertion(ParenLocation.getEnd(), ")"); } |