mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Make this thread-safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74129 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
09fc0fa0b1
commit
2e69310fd2
@ -65,6 +65,7 @@
|
||||
#include "llvm/Analysis/AliasAnalysis.h"
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/System/Atomic.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/SparseBitVector.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
@ -284,7 +285,8 @@ namespace {
|
||||
|
||||
// Timestamp a node (used for work list prioritization)
|
||||
void Stamp() {
|
||||
Timestamp = Counter++;
|
||||
Timestamp = Counter;
|
||||
sys::AtomicIncrement(&Counter);
|
||||
}
|
||||
|
||||
bool isRep() const {
|
||||
|
Loading…
Reference in New Issue
Block a user