[all-commits] [llvm/llvm-project] a3b515: [clang] CodeGen: fix ConstantExpr LValue emission ...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Thu Feb 12 17:08:11 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a3b51529d1948dee37b5bb44d49fa82b9ea37157
https://github.com/llvm/llvm-project/commit/a3b51529d1948dee37b5bb44d49fa82b9ea37157
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M clang/lib/CodeGen/CGExpr.cpp
M clang/test/CodeGenCXX/cxx2a-consteval.cpp
M clang/test/CodeGenCXX/template-cxx20.cpp
Log Message:
-----------
[clang] CodeGen: fix ConstantExpr LValue emission (#181057)
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