[all-commits] [llvm/llvm-project] 543e5f: Fix crash with align_value diagnostic reporting (#...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Apr 9 09:39:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 543e5f5842fe576bb8752f04345b2cc995e5bb50
      https://github.com/llvm/llvm-project/commit/543e5f5842fe576bb8752f04345b2cc995e5bb50
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-09 (Wed, 09 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/SemaCXX/align_value.cpp
    M clang/test/SemaCXX/alloc-align-attr.cpp
    M clang/test/SemaCXX/builtin-assume-aligned-tmpl.cpp

  Log Message:
  -----------
  Fix crash with align_value diagnostic reporting (#135013)

We were passing the address of a local variable to a call to Diag()
which then tried to use the object after its lifetime ended, resulting
in crashes. We no longer pass the temporary object any longer.

Fixes #26612



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