constified operator~().

llvm-svn: 46707
This commit is contained in:
Ted Kremenek 2008-02-04 16:57:26 +00:00
parent 36a938c4fb
commit 62853a3478

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