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 | a0d8b00ee9a3024bfd88cc75682c5fef82ce1523 (patch) | |
tree | 4487c8cec0d896105c6e701a7842a4fdbe0d16c4 /include/clang/Basic/SourceLocation.h | |
parent | 982137adce752908100fb622f12648d8bb5feed7 (diff) | |
download | clang-a0d8b00ee9a3024bfd88cc75682c5fef82ce1523.tar.gz |
SourceRanges are small and trivially copyable, don't them by reference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 65cf3b2929..0aeba5e3f3 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -253,7 +253,7 @@ public: SourceLocation getBegin() const { return Range.getBegin(); } SourceLocation getEnd() const { return Range.getEnd(); } - const SourceRange &getAsRange() const { return Range; } + SourceRange getAsRange() const { return Range; } void setBegin(SourceLocation b) { Range.setBegin(b); } void setEnd(SourceLocation e) { Range.setEnd(e); } |