[all-commits] [llvm/llvm-project] 55bbcb: [clang] Reset track of immediate function context ...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Thu Apr 6 03:39:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 55bbcbf511b4df0dfe524b2d06fc561a939c6b16
https://github.com/llvm/llvm-project/commit/55bbcbf511b4df0dfe524b2d06fc561a939c6b16
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2023-04-06 (Thu, 06 Apr 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
M clang/test/CodeGenCXX/cxx20-consteval-crash.cpp
Log Message:
-----------
[clang] Reset track of immediate function context when entering new function
Due to not resetting that, clang still thinks that it is in immediate
function context even if it already entered non-consteval function.
This caused consteval functions reaching codegen in some cases.
Fixes https://github.com/llvm/llvm-project/issues/61142
Reviewed By: cor3ntin, aaron.ballman
Differential Revision: https://reviews.llvm.org/D147531
More information about the All-commits
mailing list