diff options
author | John Hodge <tpg@mutabah.net> | 2017-02-09 22:53:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-02-09 22:53:44 +0800 |
commit | f69ca1634e19fa5a558d0848539e6313394d5a86 (patch) | |
tree | 12bf1ffae56e00af6b80a14571e6014cba72208c | |
parent | 16f5d2d847f51b530d8bcbf96cb610f48d4132be (diff) | |
download | mrust-f69ca1634e19fa5a558d0848539e6313394d5a86.tar.gz |
MIR Optimise - Fix small incorrect comparison
-rw-r--r-- | src/mir/optimise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/optimise.cpp b/src/mir/optimise.cpp index 66260782..a60d2e32 100644 --- a/src/mir/optimise.cpp +++ b/src/mir/optimise.cpp @@ -283,7 +283,7 @@ namespace { { if( impl_ref_e.params[i] ) best_impl_params.push_back( impl_ref_e.params[i]->clone() ); - else if( ! impl_ref_e.params_ph[i].m_data.is_Generic() ) + else if( ! impl_ref_e.params_ph[i].m_data.is_Generic() || impl_ref_e.params_ph[i].m_data.as_Generic().binding >> 8 != 2 ) best_impl_params.push_back( impl_ref_e.params_ph[i].clone() ); else MIR_BUG(state, "[get_called_mir] Parameter " << i << " unset"); |