mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
allow != to compare PointerUnion, we already support ==.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -177,7 +177,14 @@ namespace llvm {
|
||||
};
|
||||
|
||||
template<typename PT1, typename PT2>
|
||||
bool operator==(PointerUnion<PT1, PT2> lhs, PointerUnion<PT1, PT2> rhs) {
|
||||
static bool operator==(PointerUnion<PT1, PT2> lhs,
|
||||
PointerUnion<PT1, PT2> rhs) {
|
||||
return lhs.getOpaqueValue() == rhs.getOpaqueValue();
|
||||
}
|
||||
|
||||
template<typename PT1, typename PT2>
|
||||
static bool operator!=(PointerUnion<PT1, PT2> lhs,
|
||||
PointerUnion<PT1, PT2> rhs) {
|
||||
return lhs.getOpaqueValue() == rhs.getOpaqueValue();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user