[all-commits] [llvm/llvm-project] d351f5: [Support] Remove unused/uncompilable !HAVE_PTHREAD...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Apr 11 14:20:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d351f54a076edf24c2a2bfda7cc7e3313ee3eecf
      https://github.com/llvm/llvm-project/commit/d351f54a076edf24c2a2bfda7cc7e3313ee3eecf
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-04-11 (Mon, 11 Apr 2022)

  Changed paths:
    M llvm/lib/Support/Unix/ThreadLocal.inc

  Log Message:
  -----------
  [Support] Remove unused/uncompilable !HAVE_PTHREAD_GETSPECIFIC code path

lib/Support/ThreadLocal.cpp has been uncompilable since rL158346 (2012-06) when
`data` became a char array. The error looks like
```
...llvm/lib/Support/Unix/ThreadLocal.inc:66:57: error: array type 'char[8]' is not assignable
void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
```




More information about the All-commits mailing list