[PATCH] D144164: [clang][Interp] Handle PtrMemOps

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 19 12:47:53 PDT 2023


aaron.ballman added inline comments.


================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:213-214
 
+  if (BO->isPtrMemOp())
+    return this->visit(RHS);
+
----------------
Do we need similar changes for unary operators, pointer arithmetic operators, etc?


================
Comment at: clang/lib/AST/Interp/Context.cpp:121
+  if (T->isFunctionPointerType() || T->isFunctionReferenceType() ||
+      T->isFunctionProtoType())
+    return PT_FnPtr;
----------------
`isFunctionType()` in general?


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

https://reviews.llvm.org/D144164



More information about the cfe-commits mailing list