[PATCH] D150946: [clang][Interp] PointerToIntegral casts

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 02:14:27 PDT 2023


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Add a new opcode doing the cast and emit a diagnostic in case we're in a constant context.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150946

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/Interp.cpp
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Opcodes.td
  clang/lib/AST/Interp/Pointer.h
  clang/test/AST/Interp/literals.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150946.523698.patch
Type: text/x-patch
Size: 4853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230519/ed969f2a/attachment-0001.bin>


More information about the cfe-commits mailing list