diff options
author | Atmn Patel <atmndp@gmail.com> | 2021-01-31 19:18:41 -0500 |
---|---|---|
committer | Atmn Patel <atmndp@gmail.com> | 2021-02-01 20:13:03 -0500 |
commit | b545667d0a4e8d3ca7d4789c3c4004b2816c1b84 (patch) | |
tree | af175c6b59751d901c544c97d447c3f9cfa4c6cd /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 46e764a628da81795af3f64bd28970b7bd4115d6 (diff) | |
download | llvm-b545667d0a4e8d3ca7d4789c3c4004b2816c1b84.zip llvm-b545667d0a4e8d3ca7d4789c3c4004b2816c1b84.tar.gz llvm-b545667d0a4e8d3ca7d4789c3c4004b2816c1b84.tar.bz2 |
[OpenMP][Libomptarget] Remove possible harmful copy constructor call for RTLsTy
From https://bugs.llvm.org/show_bug.cgi?id=48973, we know that
`std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs)` causes compile
time problems in libstdc++v3 5.3.1. This is because there was a defect in the
standard regarding the `call_once` (LWG 2442). This was fixed in libstdc++ soon
thereafter, but there are likely other standard libraries where this will fail.
By matching this function call with the other one, we fix this bug.
Differential Revision: https://reviews.llvm.org/D95769
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions