[PATCH] D152977: [NFC] Fix potential dereferencing of null return value.
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 05:50:40 PDT 2023
steakhal added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp:294-295
// UntouchedAndPossiblyDestroyed or UnlockedAndPossiblyDestroyed.
- assert(lstate->isUntouchedAndPossiblyDestroyed() ||
- lstate->isUnlockedAndPossiblyDestroyed());
+ assert(lstate && (lstate->isUntouchedAndPossiblyDestroyed() ||
+ lstate->isUnlockedAndPossiblyDestroyed()));
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152977/new/
https://reviews.llvm.org/D152977
More information about the cfe-commits
mailing list