summaryrefslogtreecommitdiffstats
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
commit0bf88b9a510f0055dfb636562f3ae36fb9b5d9e2 (patch)
treea387a43543d94c5352f89d82f1410e0bcc331dc3
parent331cd706f5fd7d3804985e7e17ce241722a72955 (diff)
downloadbcm5719-llvm-0bf88b9a510f0055dfb636562f3ae36fb9b5d9e2.tar.gz
bcm5719-llvm-0bf88b9a510f0055dfb636562f3ae36fb9b5d9e2.zip
constified operator~().
llvm-svn: 46707
-rw-r--r--llvm/include/llvm/ADT/APSInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/APSInt.h b/llvm/include/llvm/ADT/APSInt.h
index be419272fec..0b98f74bd0b 100644
--- a/llvm/include/llvm/ADT/APSInt.h
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud