[PATCH] D134361: [clang][Interp] Fix copy constructors of structs with array members

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 10:02:39 PDT 2022


shafik added inline comments.


================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:649
+
+    if (!ElemT)
+      return false;
----------------
Curious what case requires this check?


================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.h:382
+  ByteCodeExprGen<Emitter> *Ctx;
+  Optional<uint64_t> OldArrayIndex;
+};
----------------
Why an `Optional`? Your not checking it and I don't see how it won't be set?


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

https://reviews.llvm.org/D134361



More information about the cfe-commits mailing list