HomePhabricator

[analyzer] Handle NTTP invocation in CallContext.getCalleeDecl()

Authored by tomasz-kaminski-sonarsource on Jun 18 2021, 4:20 AM.

Description

[analyzer] Handle NTTP invocation in CallContext.getCalleeDecl()

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().

Reviewed By: vsavchenko

Differential Revision: https://reviews.llvm.org/D103025