diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-02-04 16:57:26 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-02-04 16:57:26 +0000 |
commit | d9719495c376873abddbe13a9675bb3e7103dba7 (patch) | |
tree | 258cb64d051eb9eac3d163aabd3649e419736cb3 | |
parent | df3fb5ef97d628579ee86a7dfb767ad925fc73cc (diff) |
constified operator~().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APSInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index be419272fe..0b98f74bd0 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<const APInt&>(*this) - RHS, IsUnsigned); } - APSInt operator~() { + APSInt operator~() const { return APSInt(~static_cast<const APInt&>(*this), IsUnsigned); } |