From: Eric Christopher Date: Thu, 18 Jul 2013 19:11:41 +0000 (+0000) Subject: Equal means ==, not !=. Thanks to Benjamin for catching. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=960d6d909b61c5766dfccbe12c060550d6dd8e54;p=oota-llvm.git 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 --- diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 81c36ae0eee..2a00ab02ec8 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -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);