[PATCH] D144457: [clang][Interp] Handle global composite temporaries

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 21 01:21:41 PST 2023


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 only did this for primitive temporaries.
  
  Unfortunately, the existing Pointer::toAPValue() won't do here, since
  we're expected to set an rvalue on the LifetimeExtendedTemporaryDecl.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144457

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/Descriptor.h
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Opcodes.td
  clang/lib/AST/Interp/Pointer.cpp
  clang/lib/AST/Interp/Pointer.h
  clang/lib/AST/Interp/Record.h
  clang/test/AST/Interp/records.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144457.499071.patch
Type: text/x-patch
Size: 5918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230221/acf7cb9c/attachment.bin>


More information about the cfe-commits mailing list