constified operator~().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-02-04 16:57:26 +00:00
parent df3fb5ef97
commit d9719495c3

View 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);
}