[PATCH] D135858: [clang][Interp] Support pointer arithmethic in binary operators

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 16 02:17:09 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Interp.h:970
+  if (!Pointer::hasSameArray(LHS, RHS)) {
+    // TODO: Diagnose.
+    return false;
----------------
This is also not being diagnosed (only rejected) by the current interpreter. But would be nice to have an error message.


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

https://reviews.llvm.org/D135858



More information about the cfe-commits mailing list