aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-18 19:11:41 +0000
committerEric Christopher <echristo@gmail.com>2013-07-18 19:11:41 +0000
commit960d6d909b61c5766dfccbe12c060550d6dd8e54 (patch)
tree6226d36ff2a8c06d06c3ac57f4fcd57e901b5c03 /include
parent6abb4d2ef28f2c688498a10dfe0e4bd1b36882e3 (diff)
downloadexternal_llvm-960d6d909b61c5766dfccbe12c060550d6dd8e54.zip
external_llvm-960d6d909b61c5766dfccbe12c060550d6dd8e54.tar.gz
external_llvm-960d6d909b61c5766dfccbe12c060550d6dd8e54.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DebugInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 81c36ae..2a00ab0 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);