[llvm] r188582 - allow != to compare PointerUnion, we already support ==.
Chandler Carruth
chandlerc at google.com
Fri Aug 16 15:25:53 PDT 2013
On Fri, Aug 16, 2013 at 3:09 PM, Chris Lattner <sabre at nondot.org> wrote:
> + template<typename PT1, typename PT2>
> + static bool operator!=(PointerUnion<PT1, PT2> lhs,
> + PointerUnion<PT1, PT2> rhs) {
> + return lhs.getOpaqueValue() == rhs.getOpaqueValue();
>
Notably, a unit test might have noticed that this doesn't seem quite the
right implementation of !=...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130816/d0a185a8/attachment.html>
More information about the llvm-commits
mailing list