mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-07 21:09:21 +00:00
Allow comparison against null
llvm-svn: 3009
This commit is contained in:
parent
0caa0614f8
commit
aa06815b2b
@ -57,6 +57,9 @@ public:
|
||||
bool operator==(const DSNode *Node) const { return N == Node; }
|
||||
bool operator!=(const DSNode *Node) const { return N != Node; }
|
||||
|
||||
// Avoid having comparisons to null cause errors...
|
||||
bool operator==(int X) const { return operator==((DSNode*)X); }
|
||||
|
||||
// Allow explicit conversion to DSNode...
|
||||
DSNode *get() { return N; }
|
||||
const DSNode *get() const { return N; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user