Use a more correct atomic increment style. This isn't really necessary in
this case, but it should help avoid issues in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74178 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp
index a22a2fb..4ace049 100644
--- a/lib/Analysis/IPA/Andersens.cpp
+++ b/lib/Analysis/IPA/Andersens.cpp
@@ -285,8 +285,8 @@
// Timestamp a node (used for work list prioritization)
void Stamp() {
- Timestamp = Counter;
- sys::AtomicIncrement(&Counter);
+ Timestamp = sys::AtomicIncrement(&Counter);
+ --Timestamp;
}
bool isRep() const {