[PATCH] D140723: [clang][Interp] Only check constructors for global variables

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 28 02:56:09 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.

This is a follow-up to https://reviews.llvm.org/D136694. I can also merge the two patches.

I couldn't come up with a better way of doing this than adding a new opcode which is //only// emitted from `visitGlobalInitializer()`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140723

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/lib/AST/Interp/Interp.cpp
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Opcodes.td
  clang/test/AST/Interp/cxx20.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140723.485480.patch
Type: text/x-patch
Size: 3780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221228/bf63a7db/attachment.bin>


More information about the cfe-commits mailing list