[all-commits] [llvm/llvm-project] 90e0dd: Revert "[Analyzer][CFG] Correctly handle rebuilt d...

Hans Wennborg via All-commits all-commits at lists.llvm.org
Mon Feb 3 06:59:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90e0dd15ff070b5b4b1bb068cdade7f5b5e6ccec
      https://github.com/llvm/llvm-project/commit/90e0dd15ff070b5b4b1bb068cdade7f5b5e6ccec
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2025-02-03 (Mon, 03 Feb 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ParentMap.cpp
    M clang/lib/Analysis/CFG.cpp
    M clang/lib/Analysis/ReachableCode.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
    M clang/test/AST/ast-dump-recovery.cpp
    M clang/test/Analysis/lifetime-extended-regions.cpp
    M clang/test/SemaCXX/cxx2c-placeholder-vars.cpp
    M clang/test/SemaCXX/warn-unreachable.cpp

  Log Message:
  -----------
  Revert "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (#117437)"

This caused assertion failures:

  clang/lib/Analysis/CFG.cpp:822:
  void (anonymous namespace)::CFGBuilder::appendStmt(CFGBlock *, const Stmt *):
  Assertion `!isa<Expr>(S) || cast<Expr>(S)->IgnoreParens() == S' failed.

See comment on the PR.

This reverts commit 44aa618ef67d302f5ab77cc591fb3434fe967a2e.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list