File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ NoOutputEVMDialect::NoOutputEVMDialect(EVMDialect const& _copyFrom):
212212 // them in one go, later reference pointers to this static vector
213213 static std::vector<BuiltinFunctionForEVM> noOutputBuiltins = defineNoOutputBuiltins ();
214214
215- m_functions.reserve (m_functions .size ());
215+ yulAssert ( m_functions.size () == noOutputBuiltins .size (), " Function count mismatch. " );
216216 for (auto const & [index, builtinFunction]: m_functions | ranges::views::enumerate)
217217 {
218218 if (builtinFunction)
219- m_functions. emplace_back ( &noOutputBuiltins[index]) ;
219+ m_functions[index] = &noOutputBuiltins[index];
220220 else
221- m_functions. emplace_back ( nullptr ) ;
221+ m_functions[index] = nullptr ;
222222 }
223223}
224224
You can’t perform that action at this time.
0 commit comments