[clang] [Clang SA]: add support for mismatched ownership_returns+ownership_takes calls for custom allocation classes (PR #98941)
Pavel Skripkin via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 17 13:03:02 PDT 2024
================
@@ -1122,7 +1157,7 @@ MallocChecker::performKernelMalloc(const CallEvent &Call, CheckerContext &C,
if (TrueState && !FalseState) {
SVal ZeroVal = C.getSValBuilder().makeZeroVal(Ctx.CharTy);
return MallocMemAux(C, Call, Call.getArgExpr(0), ZeroVal, TrueState,
- AF_Malloc);
+ AllocationFamily(AF_Malloc));
----------------
pskrgag wrote:
I like current variant more. Just because it makes code more straightforward, I believe
https://github.com/llvm/llvm-project/pull/98941
More information about the cfe-commits
mailing list