From 3c172a29598aabf76ddaf02f4fd7ab85df74ecd0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 16 Feb 2009 22:39:08 +0000 Subject: [PATCH] Fix bug where APSInt::operator-- incremented instead of decremented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64687 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APSInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 7e7d1c398f2..1c9931c30fe 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -150,7 +150,7 @@ public: return *this; } APSInt& operator--() { - static_cast(*this)++; + static_cast(*this)--; return *this; } APSInt operator++(int) { -- 2.34.1