[llvm-commits] [llvm] r165107 - /llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
Dmitry Vyukov
dvyukov at google.com
Wed Oct 3 06:00:57 PDT 2012
Author: dvyukov
Date: Wed Oct 3 08:00:57 2012
New Revision: 165107
URL: http://llvm.org/viewvc/llvm-project?rev=165107&view=rev
Log:
tsan: prepare for migration to new memory_order enum values (ABI compatible)
Modified:
llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp?rev=165107&r1=165106&r2=165107&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/ThreadSanitizer.cpp Wed Oct 3 08:00:57 2012
@@ -350,7 +350,8 @@
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) {
More information about the llvm-commits
mailing list