[PATCH] D137232: [clang][Interp] Support inc/dec operators on pointers

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 9 08:00:20 PST 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Opcodes.td:421-425
+// [Pointer] -> []
+def IncPtr : Opcode {
+  let HasGroup = 0;
+}
+// [Pointer] -> []
----------------
aaron.ballman wrote:
> Don't both of these result in a `Pointer`? And should they have a `Types` field?
Ah yes, they do. They don't need a type field, we know we're operating on a pointer.


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

https://reviews.llvm.org/D137232



More information about the cfe-commits mailing list