Equal means ==, not !=. Thanks to Benjamin for catching.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-07-18 19:11:41 +00:00
parent 6abb4d2ef2
commit 960d6d909b

View File

@ -110,7 +110,7 @@ namespace llvm {
LLVM_EXPLICIT operator bool() const { return DbgNode != 0; }
bool operator==(DIDescriptor Other) const {
return DbgNode != Other.DbgNode;
return DbgNode == Other.DbgNode;
}
bool operator!=(DIDescriptor Other) const {
return !operator==(Other);