summaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-10-04 04:53:55 +0000
committerCraig Topper <craig.topper@gmail.com>2015-10-04 04:53:55 +0000
commita0d8b00ee9a3024bfd88cc75682c5fef82ce1523 (patch)
tree4487c8cec0d896105c6e701a7842a4fdbe0d16c4 /include/clang/Basic/SourceLocation.h
parent982137adce752908100fb622f12648d8bb5feed7 (diff)
downloadclang-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.h2
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); }