[PATCH] D137070: [clang][Interp] Support destructors
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 21 01:54:56 PST 2022
tbaeder marked 2 inline comments as done.
tbaeder added inline comments.
================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:30
/// Scope used to handle temporaries in toplevel variable declarations.
-template <class Emitter> class DeclScope final : public LocalScope<Emitter> {
+template <class Emitter> class DeclScope final : public VariableScope<Emitter> {
public:
----------------
shafik wrote:
> Why the change from `LocalScope` to `VariableScope`?
I changed `VariableScope` to do the destructor handling, bu that's not needed for "temporaries in toplevel variable desclarations" (also, but unrelated, inherting from something called "local scope" but then explaining in a comment that it's only used for toplevel declarations is kinda weird).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137070/new/
https://reviews.llvm.org/D137070
More information about the cfe-commits
mailing list