[all-commits] [llvm/llvm-project] b4e3e3: [analyzer] Fix a crash on copy elided initialized ...

isuckatcs via All-commits all-commits at lists.llvm.org
Fri Aug 12 15:22:36 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4e3e3a3eb775df947f10212c461307592a13de0
  Author: isuckatcs <65320245+isuckatcs at users.noreply.github.com>
  Date:   2022-08-13 (Sat, 13 Aug 2022)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
    M clang/test/Analysis/lambdas.cpp

  Log Message:
  [analyzer] Fix a crash on copy elided initialized lambda captures

Inside `ExprEngine::VisitLambdaExpr()` we wasn't prepared for a
copy elided initialized capture's `InitExpr`. This patch teaches
the analyzer how to handle such situation.

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

More information about the All-commits mailing list