From 14b66c481964009787ffb7970becfbba881128cf Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Tue, 9 Feb 2021 10:47:22 +0100 Subject: [PATCH] Correct use of emplace_back --- test/tools/ossfuzz/protoToYul.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tools/ossfuzz/protoToYul.cpp b/test/tools/ossfuzz/protoToYul.cpp index e28724098..c58a56ad2 100644 --- a/test/tools/ossfuzz/protoToYul.cpp +++ b/test/tools/ossfuzz/protoToYul.cpp @@ -1388,7 +1388,7 @@ void ProtoConverter::visit(Statement const& _x) void ProtoConverter::openBlockScope() { - m_scopeFuncs.emplace_back(vector{}); + m_scopeFuncs.emplace_back(); // Create new block scope inside current function scope if (m_inFunctionDef) @@ -1409,9 +1409,9 @@ void ProtoConverter::openBlockScope() } else { - m_globalVars.emplace_back(vector{}); + m_globalVars.emplace_back(); if (m_inForInitScope && m_forInitScopeExtEnabled) - m_globalForLoopInitVars.emplace_back(vector{}); + m_globalForLoopInitVars.emplace_back(); } }