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 | 86383e1f7cc8c31eafc6e3d8a67ce6f23d1bce63 (patch) | |
| tree | 68ebeece4f36b98b02c2b978a476bd3778a5283c /include | |
| parent | 60783304f6385c952634c9da5f9b0c9eee8eccb8 (diff) | |
Constified operator<< in APSInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -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 0b98f74bd0..705585c8a0 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; |
