[PATCH] D97606: [Clang interpreter] Avoid storing pointers at unaligned locations

Nandor Licker via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 3 00:45:58 PST 2021


nand added a comment.

The patches implementing more features/control flow constructs have not yet been committed, so if the pre-existing test passes, the functionality should be fine. Adjustments can be made later on when those patches are rebased.



================
Comment at: clang/lib/AST/Interp/Program.h:51
+  /// Returns the value of a marshalled native pointer.
+  const void *getNativePointer(unsigned Idx);
+
----------------
This works for now, but in the future we might want to have a unique integer - pointer mapping for all types that need to be stored in the bytecode.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97606



More information about the cfe-commits mailing list