From d9719495c376873abddbe13a9675bb3e7103dba7 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 4 Feb 2008 16:57:26 +0000 Subject: [PATCH] constified operator~(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APSInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }