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):
212
212
// them in one go, later reference pointers to this static vector
213
213
static std::vector<BuiltinFunctionForEVM> noOutputBuiltins = defineNoOutputBuiltins ();
214
214
215
- m_functions.reserve (m_functions .size ());
215
+ yulAssert ( m_functions.size () == noOutputBuiltins .size (), " Function count mismatch. " );
216
216
for (auto const & [index, builtinFunction]: m_functions | ranges::views::enumerate)
217
217
{
218
218
if (builtinFunction)
219
- m_functions. emplace_back ( &noOutputBuiltins[index]) ;
219
+ m_functions[index] = &noOutputBuiltins[index];
220
220
else
221
- m_functions. emplace_back ( nullptr ) ;
221
+ m_functions[index] = nullptr ;
222
222
}
223
223
}
224
224
You can’t perform that action at this time.
0 commit comments