aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/APSInt.h4
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;