projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
916495d
)
Assignment operators should return by reference.
author
John McCall
<rjmccall@apple.com>
Mon, 4 Apr 2016 18:53:01 +0000
(18:53 +0000)
committer
John McCall
<rjmccall@apple.com>
Mon, 4 Apr 2016 18:53:01 +0000
(18:53 +0000)
Thanks to Sean Silva for pointing this out.
llvm-svn: 265328
clang/include/clang/AST/CharUnits.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/CharUnits.h
b/clang/include/clang/AST/CharUnits.h
index
b2da51c
..
564c8ec
100644
(file)
--- a/
clang/include/clang/AST/CharUnits.h
+++ b/
clang/include/clang/AST/CharUnits.h
@@
-149,7
+149,7
@@
namespace clang {
CharUnits operator/ (QuantityType N) const {
return CharUnits(Quantity / N);
}
- CharUnits operator/= (QuantityType N) {
+ CharUnits
&
operator/= (QuantityType N) {
Quantity /= N;
return *this;
}