diff options
author | John McCall <rjmccall@apple.com> | 2016-04-04 18:53:01 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2016-04-04 18:53:01 +0000 |
commit | eb3219a9c23444361172f9840f2338cc5de0152d (patch) | |
tree | 70fe3bf241c6fdf148ba645cb251c1512f6b70a2 | |
parent | 916495d894a13da921896989f3825030cd720c39 (diff) | |
download | bcm5719-llvm-eb3219a9c23444361172f9840f2338cc5de0152d.tar.gz bcm5719-llvm-eb3219a9c23444361172f9840f2338cc5de0152d.zip |
Assignment operators should return by reference.
Thanks to Sean Silva for pointing this out.
llvm-svn: 265328
-rw-r--r-- | clang/include/clang/AST/CharUnits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/CharUnits.h b/clang/include/clang/AST/CharUnits.h index b2da51c23b8..564c8ec9b9e 100644 --- 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; } |