Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LTGM
compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp | ||
---|---|---|
86 | I am little worried that someone might try to use this variable to check if the tread has been initialized. Instead maybe make this a void* and aways return nullptr? |
compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp | ||
---|---|---|
86 | you can check void* as well maybe something like: class ThreadGlobalConstructor() { ThreadGlobalConstructor() { .... } } thread_global_constructor UNUSED; |
compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp | ||
---|---|---|
86–102 | Can you try this? It might be a little too convoluted as it is using the comma operator. The lambda is void in this case and the expression is always nullptr. Probably your class solution is better though... |
I am little worried that someone might try to use this variable to check if the tread has been initialized. Instead maybe make this a void* and aways return nullptr?