projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c2fd4
)
tsan: fix compiler warning
author
Dmitry Vyukov
<dvyukov@google.com>
Tue, 6 Nov 2012 14:05:20 +0000
(14:05 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Tue, 6 Nov 2012 14:05:20 +0000
(14:05 +0000)
llvm-svn: 167458
compiler-rt/lib/tsan/lit_tests/static_init5.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/lit_tests/static_init5.cc
b/compiler-rt/lib/tsan/lit_tests/static_init5.cc
index
9d44eb2
..
1d0ed6d
100644
(file)
--- a/
compiler-rt/lib/tsan/lit_tests/static_init5.cc
+++ b/
compiler-rt/lib/tsan/lit_tests/static_init5.cc
@@
-17,7
+17,7
@@
void *AsyncInit(void *p) {
Cache *CreateCache() {
pthread_t t;
- pthread_create(&t, 0, AsyncInit, (void*)rand());
+ pthread_create(&t, 0, AsyncInit, (void*)
(long)
rand());
void *res;
pthread_join(t, &res);
return (Cache*)res;