================
@@ -1251,6 +1267,16 @@ class CodeGenFunction : public CodeGenTypeCache {
~OMPPrivateScope() {
if (PerformCleanup)
ForceCleanup();
+ for (auto &Change : BindingChanges) {
+ if (Change.second.has_value()) {
+ auto It = CGF.OMPPrivatizedBindings.find(Change.first);
+ assert(It != CGF.OMPPrivatizedBindings.end() &&
+ "Entry should exist when restoring previous value");
+ It->second = *Change.second;
----------------
alexey-bataev wrote:
```suggestion
It->second = CGF.OMPPrivatizedBindings.at(Change.first);
```
https://github.com/llvm/llvm-project/pull/190832
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits