File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1457,14 +1457,13 @@ void CGOpenMPRuntime::functionFinished(CodeGenFunction &CGF) {
1457
1457
clearLocThreadIdInsertPt(CGF);
1458
1458
OpenMPLocThreadIDMap.erase(CGF.CurFn);
1459
1459
}
1460
- if (FunctionUDRMap.count (CGF.CurFn) > 0 ) {
1461
- for(const auto *D : FunctionUDRMap[CGF.CurFn] )
1460
+ if (auto I = FunctionUDRMap.find (CGF.CurFn); I != FunctionUDRMap.end() ) {
1461
+ for (const auto *D : I->second )
1462
1462
UDRMap.erase(D);
1463
- FunctionUDRMap.erase(CGF.CurFn );
1463
+ FunctionUDRMap.erase(I );
1464
1464
}
1465
- auto I = FunctionUDMMap.find(CGF.CurFn);
1466
- if (I != FunctionUDMMap.end()) {
1467
- for(const auto *D : I->second)
1465
+ if (auto I = FunctionUDMMap.find(CGF.CurFn); I != FunctionUDMMap.end()) {
1466
+ for (const auto *D : I->second)
1468
1467
UDMMap.erase(D);
1469
1468
FunctionUDMMap.erase(I);
1470
1469
}
You can’t perform that action at this time.
0 commit comments