From: Ted Kremenek Date: Mon, 4 Feb 2008 16:57:26 +0000 (+0000) Subject: constified operator~(). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d9719495c376873abddbe13a9675bb3e7103dba7;p=oota-llvm.git constified operator~(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index be419272fec..0b98f74bd0b 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -223,7 +223,7 @@ public: assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!"); return APSInt(static_cast(*this) - RHS, IsUnsigned); } - APSInt operator~() { + APSInt operator~() const { return APSInt(~static_cast(*this), IsUnsigned); }