summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APSInt.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-04 16:57:26 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-04 16:57:26 +0000
commitd9719495c376873abddbe13a9675bb3e7103dba7 (patch)
tree258cb64d051eb9eac3d163aabd3649e419736cb3 /include/llvm/ADT/APSInt.h
parentdf3fb5ef97d628579ee86a7dfb767ad925fc73cc (diff)
downloadllvm-d9719495c376873abddbe13a9675bb3e7103dba7.tar.gz
llvm-d9719495c376873abddbe13a9675bb3e7103dba7.tar.bz2
llvm-d9719495c376873abddbe13a9675bb3e7103dba7.tar.xz
constified operator~().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r--include/llvm/ADT/APSInt.h2
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);
}