[clang] [NFC] Avoid potential null dereference. (PR #127017)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 01:51:35 PST 2025
================
@@ -314,6 +314,7 @@ void MacOSKeychainAPIChecker::checkPreStmt(const CallExpr *CE,
RegionArgIsBad = true;
}
+ assert(ArgSM);
----------------
steakhal wrote:
I'm okay with this assert.
It shouldn't change much though because the very next lookup would fail if this was a null pointer because we never store entries for null pointers.
Thanks for the assert!
https://github.com/llvm/llvm-project/pull/127017
More information about the cfe-commits
mailing list