OSDN Git Service

constified operator~().
authorTed Kremenek <kremenek@apple.com>
Mon, 4 Feb 2008 16:57:26 +0000 (16:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 Feb 2008 16:57:26 +0000 (16:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APSInt.h

index be41927..0b98f74 100644 (file)
@@ -223,7 +223,7 @@ public:
     assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
     return APSInt(static_cast<const APInt&>(*this) - RHS, IsUnsigned);
   }
-  APSInt operator~() {    
+  APSInt operator~() const {    
     return APSInt(~static_cast<const APInt&>(*this), IsUnsigned);
   }