summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-08-16 22:29:44 +0000
committerChris Lattner <sabre@nondot.org>2013-08-16 22:29:44 +0000
commit586ea17be9fbf2fa1f2341900ebf1675a0924edc (patch)
tree7617315f95bc5a58c711ea769c8f55ea72aa7f1b /include
parentb2820859240b8b8ad03384207ce896da60702f98 (diff)
downloadllvm-586ea17be9fbf2fa1f2341900ebf1675a0924edc.tar.gz
llvm-586ea17be9fbf2fa1f2341900ebf1675a0924edc.tar.bz2
llvm-586ea17be9fbf2fa1f2341900ebf1675a0924edc.tar.xz
I'm told that != is not ==
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/PointerUnion.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/PointerUnion.h b/include/llvm/ADT/PointerUnion.h
index 045cf2bd2e..4eed121ed3 100644
--- a/include/llvm/ADT/PointerUnion.h
+++ b/include/llvm/ADT/PointerUnion.h
@@ -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