[PATCH] D138802: [clang][Interp] Implement DecompositionDecls

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 05:53:18 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.

Factor out the actual variable allocation logic into a separate function, so we can call it multiple times from `visitVarDecl()` if the variable declaration is a `DecompositionDecl()`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138802

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  clang/lib/AST/Interp/Program.h
  clang/test/AST/Interp/cxx17.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138802.478208.patch
Type: text/x-patch
Size: 6383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221128/a5dd8c91/attachment.bin>


More information about the cfe-commits mailing list