mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Constified operator<< in APSInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -130,8 +130,8 @@ public:
|
|||||||
// The remaining operators just wrap the logic of APInt, but retain the
|
// The remaining operators just wrap the logic of APInt, but retain the
|
||||||
// signedness information.
|
// signedness information.
|
||||||
|
|
||||||
APSInt operator<<(unsigned Bits) {
|
APSInt operator<<(unsigned Bits) const {
|
||||||
return APSInt(static_cast<APInt&>(*this) << Bits, IsUnsigned);
|
return APSInt(static_cast<const APInt&>(*this) << Bits, IsUnsigned);
|
||||||
}
|
}
|
||||||
APSInt& operator<<=(unsigned Amt) {
|
APSInt& operator<<=(unsigned Amt) {
|
||||||
*this = *this << Amt;
|
*this = *this << Amt;
|
||||||
|
Reference in New Issue
Block a user