[all-commits] [llvm/llvm-project] c0097c: [OpenMP][Libomptarget] Remove possible harmful cop...
Atmn Patel via All-commits
all-commits at lists.llvm.org
Tue Feb 2 19:05:38 PST 2021
Branch: refs/heads/release/12.x
Home: https://github.com/llvm/llvm-project
Commit: c0097c784179e6f927ed8ae6b28796faee2fea61
https://github.com/llvm/llvm-project/commit/c0097c784179e6f927ed8ae6b28796faee2fea61
Author: Atmn Patel <atmndp at gmail.com>
Date: 2021-02-02 (Tue, 02 Feb 2021)
Changed paths:
M openmp/libomptarget/src/interface.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list