mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Tweak code into an equivalent form for which icc
doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -117,8 +117,7 @@ RWMutexImpl::reader_acquire()
|
||||
|
||||
int errorcode = pthread_rwlock_rdlock(rwlock);
|
||||
return errorcode == 0;
|
||||
}
|
||||
return false;
|
||||
} else return false;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -131,8 +130,7 @@ RWMutexImpl::reader_release()
|
||||
|
||||
int errorcode = pthread_rwlock_unlock(rwlock);
|
||||
return errorcode == 0;
|
||||
}
|
||||
return false;
|
||||
} else return false;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -145,8 +143,7 @@ RWMutexImpl::writer_acquire()
|
||||
|
||||
int errorcode = pthread_rwlock_wrlock(rwlock);
|
||||
return errorcode == 0;
|
||||
}
|
||||
return false;
|
||||
} else return false;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -159,8 +156,7 @@ RWMutexImpl::writer_release()
|
||||
|
||||
int errorcode = pthread_rwlock_unlock(rwlock);
|
||||
return errorcode == 0;
|
||||
}
|
||||
return false;
|
||||
} else return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user