From 733f1ba26d61745f8daa21ea9feb8c0752ec71fa Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 4 Jun 2019 18:05:19 +0800 Subject: HIR Ops - Remove unused case from impl matching (slight speedup) --- src/hir/hir_ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp index a484b5eb..9e867980 100644 --- a/src/hir/hir_ops.cpp +++ b/src/hir/hir_ops.cpp @@ -20,7 +20,7 @@ namespace { bool matches_type_int(const ::HIR::TypeRef& left, const ::HIR::TypeRef& right_in, ::HIR::t_cb_resolve_type ty_res, bool expand_generic) { assert(! left.m_data.is_Infer() ); - const auto& right = (right_in.m_data.is_Infer() || (right_in.m_data.is_Generic() && expand_generic) ? ty_res(right_in) : right_in); + const auto& right = (right_in.m_data.is_Infer() ? ty_res(right_in) : right_in); if( right_in.m_data.is_Generic() ) expand_generic = false; -- cgit v1.2.3