[PATCH] D23178: [ADT] Add relation operators for Optional

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 11:12:15 PDT 2016


timshen updated this revision to Diff 67714.
timshen added a comment.

Done.

I used non-literal for CheckRelation, e.g.
CheckRelation<Greater>(InequalityRhs, InequalityLhs, IsLess);

So that it seems more readable (read as Rhs is less then Lhs).


https://reviews.llvm.org/D23178

Files:
  include/llvm/ADT/Optional.h
  unittests/ADT/OptionalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23178.67714.patch
Type: text/x-patch
Size: 10535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160811/c701c773/attachment.bin>


More information about the llvm-commits mailing list