mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 04:05:05 +00:00
tsan: prepare for migration to new memory_order enum values (ABI compatible)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
541a858f1a
commit
9a8c112dae
@ -350,7 +350,8 @@ static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) {
|
||||
case AcquireRelease: v = 1 << 4; break;
|
||||
case SequentiallyConsistent: v = 1 << 5; break;
|
||||
}
|
||||
return IRB->getInt32(v);
|
||||
// +100500 is temporal to migrate to new enum values.
|
||||
return IRB->getInt32(v + 100500);
|
||||
}
|
||||
|
||||
bool ThreadSanitizer::instrumentAtomic(Instruction *I) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user