diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-24 13:14:02 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-24 13:14:02 +0000 |
commit | a88b509d233d3f42382130c159c05cafa006b3e0 (patch) | |
tree | c3315d70fd600de83a17fd570d71b1c152872798 /lib/Parse/Parser.cpp | |
parent | 897e7a38c73a28731f8cdbaa4385ca15ab65820c (diff) |
Pass SourceRanges by reference to the various Diag methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index c6b0a80e02..7598ff7996 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -39,7 +39,7 @@ bool Parser::Diag(SourceLocation Loc, unsigned DiagID, } bool Parser::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg, - SourceRange Range) { + const SourceRange& Range) { Diags.Report(PP.getFullLoc(Loc), DiagID, &Msg, 1, &Range,1); return true; } |