[all-commits] [llvm/llvm-project] cc2ef1: [analyzer] Handle NTTP invocation in CallContext.g...

tomasz-kaminski-sonarsource via All-commits all-commits at lists.llvm.org
Fri Jun 18 06:46:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc2ef195560999d0690a8d8805ea811270e38f26
      https://github.com/llvm/llvm-project/commit/cc2ef195560999d0690a8d8805ea811270e38f26
  Author: Tomasz KamiƄski <tomasz.kaminski at sonarsource.com>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
    M clang/test/Analysis/NewDelete-checker-test.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list