[all-commits] [llvm/llvm-project] 3edbe3: [clang] Fix missing check for nullptr in CallExpr:...

Yihe Li via All-commits all-commits at lists.llvm.org
Mon Jan 6 04:26:02 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3edbe36c3eb01d1c35ac1761da108e3a493258ee
      https://github.com/llvm/llvm-project/commit/3edbe36c3eb01d1c35ac1761da108e3a493258ee
  Author: Yihe Li <winmikedows at hotmail.com>
  Date:   2025-01-06 (Mon, 06 Jan 2025)

  Changed paths:
    M clang/lib/AST/Expr.cpp
    M clang/test/SemaCXX/warn-unused-result.cpp

  Log Message:
  -----------
  [clang] Fix missing check for nullptr in CallExpr::getUnusedResultAttr (#118636)

Fixes #117975, a regression introduced by #112521 due to forgetting
to check for `nullptr` before dereferencing in
`CallExpr::getUnusedResultAttr`.



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