[PATCH] D149154: [clang][Interp] Emit diagnostic when comparing function pointers

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 25 06:48:43 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.

  Function pointers can be compared for (in)equality but, but LE, GE, LT,
  and GT opcodes should emit an error and abort.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149154

Files:
  clang/lib/AST/Interp/FunctionPointer.h
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Opcodes.td
  clang/test/AST/Interp/functions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149154.516790.patch
Type: text/x-patch
Size: 4317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230425/30544212/attachment-0001.bin>


More information about the cfe-commits mailing list