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 /lib/Lex/PPExpressions.cpp | |
parent | 982137adce752908100fb622f12648d8bb5feed7 (diff) |
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 'lib/Lex/PPExpressions.cpp')
-rw-r--r-- | lib/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPExpressions.cpp b/lib/Lex/PPExpressions.cpp index 4451302339..d2156d49cf 100644 --- a/lib/Lex/PPExpressions.cpp +++ b/lib/Lex/PPExpressions.cpp @@ -42,7 +42,7 @@ public: unsigned getBitWidth() const { return Val.getBitWidth(); } bool isUnsigned() const { return Val.isUnsigned(); } - const SourceRange &getRange() const { return Range; } + SourceRange getRange() const { return Range; } void setRange(SourceLocation L) { Range.setBegin(L); Range.setEnd(L); } void setRange(SourceLocation B, SourceLocation E) { |