[PATCH] D140724: [clang][Interp] Add back Run() call
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 28 03:07:49 PST 2022
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
We need to run the functions we compiled immediately after to check if
they can ever be a constant expression.
I removed this before, thinking it was unneeded. Turns out it is needed to get the "constexpr function never produces a constant expression" diagnostics.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140724
Files:
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/Interp.h
clang/test/AST/Interp/arrays.cpp
clang/test/AST/Interp/literals.cpp
clang/test/AST/Interp/records.cpp
clang/test/AST/Interp/shifts.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140724.485481.patch
Type: text/x-patch
Size: 8417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221228/ffbc0ebf/attachment.bin>
More information about the cfe-commits
mailing list