[llvm-commits] [llvm] r46707 - /llvm/trunk/include/llvm/ADT/APSInt.h
Ted Kremenek
kremenek at apple.com
Mon Feb 4 08:57:38 PST 2008
Author: kremenek
Date: Mon Feb 4 10:57:26 2008
New Revision: 46707
URL: http://llvm.org/viewvc/llvm-project?rev=46707&view=rev
Log:
constified operator~().
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=46707&r1=46706&r2=46707&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Mon Feb 4 10:57:26 2008
@@ -223,7 +223,7 @@
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);
}
More information about the llvm-commits
mailing list