diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-06 13:45:42 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-06 13:45:42 +0800 |
commit | 1fe42a193fbd595691ba213cd21d5b68059fcfad (patch) | |
tree | ea731a515d0e41c6bdcf023e75bf678a74a2b29b | |
parent | 29e2c6e3aaffefa2ac19882282fcb93855415b01 (diff) | |
download | mrust-1fe42a193fbd595691ba213cd21d5b68059fcfad.tar.gz |
HIR - Fix pointer equality in TypeRef::operator==
-rw-r--r-- | src/hir/type.cpp | 2 |
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 ) |