[PATCH] D132111: [clang][Interp] Implement pointer (de)ref operations and DeclRefExprs
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 22:44:45 PDT 2022
tbaeder added inline comments.
================
Comment at: clang/test/AST/Interp/literals.cpp:41
+
+constexpr const int* getIntPointer() {
+ return &m;
----------------
shafik wrote:
> What are these functions testing?
Functions take a slightly different code path where actual bytecode is generated instead of the expression directly evaluated, so the functions test that this codepath works as well.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132111/new/
https://reviews.llvm.org/D132111
More information about the cfe-commits
mailing list