Skip to content

Commit

Permalink
I'm told that != is not ==
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188583 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 16, 2013
1 parent b282085 commit 586ea17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llvm/ADT/PointerUnion.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace llvm {
template<typename PT1, typename PT2>
static bool operator!=(PointerUnion<PT1, PT2> lhs,
PointerUnion<PT1, PT2> rhs) {
return lhs.getOpaqueValue() == rhs.getOpaqueValue();
return lhs.getOpaqueValue() != rhs.getOpaqueValue();
}

// Teach SmallPtrSet that PointerUnion is "basically a pointer", that has
Expand Down

0 comments on commit 586ea17

Please sign in to comment.