mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
tsan: prepare for migration to new memory_order enum values (ABI compatible)
llvm-svn: 165107
This commit is contained in:
parent
c4986e5454
commit
073abe76d1
@ -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…
Reference in New Issue
Block a user