This fixes a crash in MallocChecker for the situation when operator new (delete) is invoked via NTTP and makes the behavior of CallContext.getCalleeDecl(Expr) identical to CallEvent.getDecl().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The alternative solution, that I think may be preferable is to remove following functions from CheckerContext and use CallEvent.getDecl() instead:
const FunctionDecl *getCalleeDecl(const CallExpr *CE) const; const IdentifierInfo *getCalleeIdentifier(const CallExpr *CE) const; StringRef getCalleeName(const CallExpr *CE) const;