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/PPExpressions.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/PPExpressions.cpp')
-rw-r--r-- | clang/lib/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp index 44513023395..d2156d49cf2 100644 --- a/clang/lib/Lex/PPExpressions.cpp +++ b/clang/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) { |