diff options
author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2024-07-28 21:36:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 21:36:17 -0700 |
commit | 5cddc314c8928ead12bb9c07cbefa45ee410de5c (patch) | |
tree | 77d294dd9e39aa4710ecca0d4907aca3ebb11c04 /llvm/lib/IR/BasicBlock.cpp | |
parent | 8e2476e102e8ce3ae496b293bacccb248787404d (diff) | |
download | llvm-5cddc314c8928ead12bb9c07cbefa45ee410de5c.zip llvm-5cddc314c8928ead12bb9c07cbefa45ee410de5c.tar.gz llvm-5cddc314c8928ead12bb9c07cbefa45ee410de5c.tar.bz2 |
[libc] fix rwlock test (#100962)
Previous commit uses wrong clock id and forget to release an additional
rdlock. cc @Eric977
Sorry for missing this in my initial review.
Fixes https://github.com/llvm/llvm-project/issues/100960.
Notice that the timestamp is created via
```c++
LIBC_NAMESPACE::clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_nsec += 50'000;
if (ts.tv_nsec >= 1'000'000'000) {
ts.tv_nsec -= 1'000'000'000;
ts.tv_sec += 1;
}
```
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions