aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorYounan Zhang <zyn7109@gmail.com>2024-06-16 21:54:19 +0800
committerGitHub <noreply@github.com>2024-06-16 21:54:19 +0800
commit5548ea34341e9d0ae645719c34b466ca3b9eaa5a (patch)
tree68fa57a564d3e3b8a7dba4c9a38dcc89ba70dc79 /clang/unittests/Format/ConfigParseTest.cpp
parentd442bf043537fd4bc0c2fc5a4d77337b0d482ea9 (diff)
downloadllvm-5548ea34341e9d0ae645719c34b466ca3b9eaa5a.zip
llvm-5548ea34341e9d0ae645719c34b466ca3b9eaa5a.tar.gz
llvm-5548ea34341e9d0ae645719c34b466ca3b9eaa5a.tar.bz2
[Clang] Instantiate local constexpr functions eagerly (#95660)
We had a code path in `Sema::MarkFunctionReferenced()` that deferred local lambda instantiation even for constexprs. This resulted in any calls to them referring to function decls that lack bodies and hence failures at constant evaluation. The issue doesn't occur when the lambda has no explicit return type because the return type deduction requires instantiation. Fixes https://github.com/llvm/llvm-project/issues/35052 Fixes https://github.com/llvm/llvm-project/issues/94849
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
0 files changed, 0 insertions, 0 deletions