[all-commits] [llvm/llvm-project] c724ac: [clang] Fix null dereference on return in lambda a...

Piotr Fusik via All-commits all-commits at lists.llvm.org
Mon Sep 18 19:02:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c724ac9330cb77d9557178fbe3893485264376d9
      https://github.com/llvm/llvm-project/commit/c724ac9330cb77d9557178fbe3893485264376d9
  Author: Piotr Fusik <piotr at fusion-lang.org>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaStmt.cpp
    A clang/test/Parser/gh48527.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp

  Log Message:
  -----------
  [clang] Fix null dereference on return in lambda attribute statement expr (#66643)

clang was crashing on a lambda attribute with a statement expression
that contained a `return`.
It attempted to access the lambda type which was unknown at that point.

Fixes https://github.com/llvm/llvm-project/issues/48527




More information about the All-commits mailing list