[all-commits] [llvm/llvm-project] 345d5d: [clang] fix classification of a string literal exp...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Wed Jul 31 20:05:35 PDT 2024


  Branch: refs/heads/users/mizvekov/clang-fix-GH82167
  Home:   https://github.com/llvm/llvm-project
  Commit: 345d5d15f7d8992ce1ecd575f83ea85088bb27c1
      https://github.com/llvm/llvm-project/commit/345d5d15f7d8992ce1ecd575f83ea85088bb27c1
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ExprClassification.cpp
    A clang/test/SemaCXX/GH82167.cpp

  Log Message:
  -----------
  [clang] fix classification of a string literal expression used as initialzier

Since 3bf72d7d64b8465acd4f4af1a469d68d9dc86058 we have made a
simplification where we transform a string literal into a prvalue,
where normally they would always be lvalues.

This patch fixes expression classification to account for this
case.

Fixes #82167



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