summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/guard_test_basic.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-04-24 04:21:05 +0000
committerEric Fiselier <eric@efcs.ca>2019-04-24 04:21:05 +0000
commit5a235865f7211563e69ba15d6d60aca9c3a20592 (patch)
treee2189165c5e768f1956044b9d091a8800e52173c /libcxxabi/test/guard_test_basic.pass.cpp
parentb5f39845417560b7a54342dcb013af82f83567b2 (diff)
downloadbcm5719-llvm-5a235865f7211563e69ba15d6d60aca9c3a20592.tar.gz
bcm5719-llvm-5a235865f7211563e69ba15d6d60aca9c3a20592.zip
Cleanup new cxa guard implementation.
* Add TSAN annotations around the futex syscalls. * Test that the futex syscall wrappers actually work. * Fix bad names. llvm-svn: 359069
Diffstat (limited to 'libcxxabi/test/guard_test_basic.pass.cpp')
-rw-r--r--libcxxabi/test/guard_test_basic.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/test/guard_test_basic.pass.cpp b/libcxxabi/test/guard_test_basic.pass.cpp
index e04d694c845..a325dd0b732 100644
--- a/libcxxabi/test/guard_test_basic.pass.cpp
+++ b/libcxxabi/test/guard_test_basic.pass.cpp
@@ -129,7 +129,7 @@ int main() {
#if defined(__APPLE__) || defined(__linux__)
assert(PlatformThreadID);
#endif
- if (+PlatformThreadID) {
+ if (PlatformSupportsThreadID()) {
assert(PlatformThreadID() != 0);
assert(PlatformThreadID() == PlatformThreadID());
}
OpenPOWER on IntegriCloud