[PATCH] D98504: [clang][Checkers] Fix PthreadLockChecker state cleanup at dead symbol.
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 12 11:46:04 PST 2021
ASDenysPetrov added a comment.
Hi, @balazske
================
Comment at: clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp:290-304
// Existence in DestroyRetVal ensures existence in LockMap.
// Existence in Destroyed also ensures that the lock state for lockR is either
// UntouchedAndPossiblyDestroyed or UnlockedAndPossiblyDestroyed.
assert(lstate->isUntouchedAndPossiblyDestroyed() ||
lstate->isUnlockedAndPossiblyDestroyed());
ConstraintManager &CMgr = state->getConstraintManager();
----------------
I'm just wondering, did you think about such way of fixing?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98504/new/
https://reviews.llvm.org/D98504
More information about the cfe-commits
mailing list