summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-06 13:45:42 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-06 13:45:42 +0800
commit1fe42a193fbd595691ba213cd21d5b68059fcfad (patch)
treeea731a515d0e41c6bdcf023e75bf678a74a2b29b
parent29e2c6e3aaffefa2ac19882282fcb93855415b01 (diff)
downloadmrust-1fe42a193fbd595691ba213cd21d5b68059fcfad.tar.gz
HIR - Fix pointer equality in TypeRef::operator==
-rw-r--r--src/hir/type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp
index 6b90801f..45b47519 100644
--- a/src/hir/type.cpp
+++ b/src/hir/type.cpp
@@ -253,7 +253,7 @@ bool ::HIR::TypeRef::operator==(const ::HIR::TypeRef& x) const
if( te.m_arg_types[i] != xe.m_arg_types[i] )
return false;
}
- return te.m_rettype == xe.m_rettype;
+ return *te.m_rettype == *xe.m_rettype;
),
(Closure,
if( te.node != xe.node )