diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-02-08 07:14:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-02-08 07:14:19 +0000 |
commit | ca30ccb41e86023d33d95ff928ba9e53d099e8b7 (patch) | |
tree | 68ebeece4f36b98b02c2b978a476bd3778a5283c | |
parent | 06844678cf2755eed47919a62ba979e6bff2dcd5 (diff) | |
download | external_llvm-ca30ccb41e86023d33d95ff928ba9e53d099e8b7.zip external_llvm-ca30ccb41e86023d33d95ff928ba9e53d099e8b7.tar.gz external_llvm-ca30ccb41e86023d33d95ff928ba9e53d099e8b7.tar.bz2 |
Constified operator<< in APSInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APSInt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 0b98f74..705585c 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -130,8 +130,8 @@ public: // The remaining operators just wrap the logic of APInt, but retain the // signedness information. - APSInt operator<<(unsigned Bits) { - return APSInt(static_cast<APInt&>(*this) << Bits, IsUnsigned); + APSInt operator<<(unsigned Bits) const { + return APSInt(static_cast<const APInt&>(*this) << Bits, IsUnsigned); } APSInt& operator<<=(unsigned Amt) { *this = *this << Amt; |