From 1fe42a193fbd595691ba213cd21d5b68059fcfad Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 6 Aug 2016 13:45:42 +0800 Subject: HIR - Fix pointer equality in TypeRef::operator== --- src/hir/type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) -- cgit v1.2.3