[PATCH] D136956: [clang][Interp] Implement BitXor opcode

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 28 19:02:58 PDT 2022


shafik accepted this revision.
shafik added a comment.
This revision is now accepted and ready to land.

Besides the minor comment LGTM



================
Comment at: clang/test/AST/Interp/literals.cpp:290
+  static_assert((0 | gimme(12)) == 12, "");
+  static_assert((12 ^ true) == 13, "");
+#pragma clang diagnostic pop
----------------
Should also work w/ unscoped enums as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136956



More information about the cfe-commits mailing list