forked from OSchip/llvm-project
tsan: fix argument passing in Go interface
Go calling convention does not support bools (it probably works, but uptrs are safer) llvm-svn: 210365
This commit is contained in:
parent
fcf31a73d1
commit
9ff85e9674
|
@ -191,17 +191,17 @@ void __tsan_finalizer_goroutine(ThreadState *thr) {
|
|||
AcquireGlobal(thr, 0);
|
||||
}
|
||||
|
||||
void __tsan_mutex_before_lock(ThreadState *thr, uptr addr, bool write) {
|
||||
void __tsan_mutex_before_lock(ThreadState *thr, uptr addr, uptr write) {
|
||||
}
|
||||
|
||||
void __tsan_mutex_after_lock(ThreadState *thr, uptr addr, bool write) {
|
||||
void __tsan_mutex_after_lock(ThreadState *thr, uptr addr, uptr write) {
|
||||
if (write)
|
||||
MutexLock(thr, 0, addr);
|
||||
else
|
||||
MutexReadLock(thr, 0, addr);
|
||||
}
|
||||
|
||||
void __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, bool write) {
|
||||
void __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, uptr write) {
|
||||
if (write)
|
||||
MutexUnlock(thr, 0, addr);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue