mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 19:06:05 +00:00
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
This commit is contained in:
parent
e481f12749
commit
2d7f78eb09
@ -285,8 +285,8 @@ namespace {
|
|||||||
|
|
||||||
// Timestamp a node (used for work list prioritization)
|
// Timestamp a node (used for work list prioritization)
|
||||||
void Stamp() {
|
void Stamp() {
|
||||||
Timestamp = Counter;
|
Timestamp = sys::AtomicIncrement(&Counter);
|
||||||
sys::AtomicIncrement(&Counter);
|
--Timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isRep() const {
|
bool isRep() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user