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:
Dmitry Vyukov 2012-10-03 13:00:57 +00:00
parent 541a858f1a
commit 9a8c112dae

View File

@ -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) {