mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +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:
@ -350,7 +350,8 @@ static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) {
|
|||||||
case AcquireRelease: v = 1 << 4; break;
|
case AcquireRelease: v = 1 << 4; break;
|
||||||
case SequentiallyConsistent: v = 1 << 5; 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) {
|
bool ThreadSanitizer::instrumentAtomic(Instruction *I) {
|
||||||
|
Reference in New Issue
Block a user