From 86383e1f7cc8c31eafc6e3d8a67ce6f23d1bce63 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 8 Feb 2008 07:14:19 +0000 Subject: [PATCH] Constified operator<< in APSInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46882 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APSInt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 0b98f74bd0b..705585c8a0c 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(*this) << Bits, IsUnsigned); + APSInt operator<<(unsigned Bits) const { + return APSInt(static_cast(*this) << Bits, IsUnsigned); } APSInt& operator<<=(unsigned Amt) { *this = *this << Amt;