We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5337b8 + 2d7f53b commit 5ac9f1cCopy full SHA for 5ac9f1c
clang/lib/Analysis/ThreadSafety.cpp
@@ -1066,9 +1066,9 @@ class ScopedLockableFactEntry : public FactEntry {
1066
return;
1067
}
1068
1069
- FSet.removeLock(FactMan, Cp);
1070
- FSet.addLock(FactMan,
1071
- std::make_unique<LockableFactEntry>(!Cp, LK_Exclusive, loc));
+ FSet.replaceLock(
+ FactMan, It,
+ std::make_unique<LockableFactEntry>(!Cp, LK_Exclusive, loc));
1072
} else if (Handler) {
1073
SourceLocation PrevLoc;
1074
if (const FactEntry *Neg = FSet.findLock(FactMan, !Cp))
0 commit comments