[PATCH] D99561: Support visitor pattern by PointerUnion.

Bakhtiyar Neyman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 23:48:46 PDT 2021


bakhtiyarneyman updated this revision to Diff 334906.
bakhtiyarneyman marked an inline comment as done.
bakhtiyarneyman added a comment.

Aligned the calling convention of `visit` to match that of `std::visit`. Renamed the more convenient version of `visit` to `match` to have the best of the two worlds: better ergonomics and not clashing with `std::visit`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99561

Files:
  llvm/include/llvm/ADT/PointerUnion.h
  llvm/unittests/ADT/PointerUnionTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99561.334906.patch
Type: text/x-patch
Size: 5621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210402/292840a3/attachment.bin>


More information about the llvm-commits mailing list