[all-commits] [llvm/llvm-project] fb6210: [clang] CodeGen: fix ConstantExpr LValue emission
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Wed Feb 11 16:21:24 PST 2026
Branch: refs/heads/users/mizvekov/GH177807
Home: https://github.com/llvm/llvm-project
Commit: fb6210fed2fbe4dd793f70c6dcb78aef1c48e2d2
https://github.com/llvm/llvm-project/commit/fb6210fed2fbe4dd793f70c6dcb78aef1c48e2d2
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M clang/lib/CodeGen/CGExpr.cpp
M clang/test/CodeGenCXX/template-cxx20.cpp
Log Message:
-----------
[clang] CodeGen: fix ConstantExpr LValue emission
This fixes a regression introduced in #161029, though not the fault of that
patch, only by incidental changes regarding the preservation of constant expression
nodes.
The LValue emission of ConstantExpr was doing strange things with regards to
what type corresponds to the result of the constant expression, which are not
justified by any tests or in the discussions of the relevant patches.
See
https://github.com/llvm/llvm-project/commit/09669e6c5fa1e8db9c1091cc264640fb0377d6b6
and https://github.com/llvm/llvm-project/pull/78041 and
https://github.com/llvm/llvm-project/commit/51e4aa87e05c45bebf9658a47980b1934c88be31
This simplifies it to just use the expression type.
Since this regression was never released, there are no release notes.
Fixes #177807
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