[PATCH] D153653: [clang][Interp] Make CXXTemporaryObjectExprs leave a value behind

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 22:21:35 PDT 2023


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1022
+
+    if (DiscardResult)
+      return this->emitPopPtr(E);
----------------
shafik wrote:
> Could you just pass `DiscardResult` to `visitLocalInitializer`
Nope, the `visitInitializer` function(s) don't handle `DiscardResult` at all right now; they just initialize an already existing value.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153653/new/

https://reviews.llvm.org/D153653



More information about the cfe-commits mailing list