From cb8fa0a5b229539d1975669c19db697480ea51b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 9 Jan 2015 15:30:13 +0100 Subject: [PATCH] Fix MSVC build --- libevmjit/Ext.cpp | 4 +++- libevmjit/Ext.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libevmjit/Ext.cpp b/libevmjit/Ext.cpp index c30b0a1e3..cd741ad24 100644 --- a/libevmjit/Ext.cpp +++ b/libevmjit/Ext.cpp @@ -22,7 +22,9 @@ namespace jit Ext::Ext(RuntimeManager& _runtimeManager, Memory& _memoryMan): RuntimeHelper(_runtimeManager), - m_memoryMan(_memoryMan) + m_memoryMan(_memoryMan), + m_funcs{}, + m_argAllocas{} { m_size = m_builder.CreateAlloca(Type::Size, nullptr, "env.size"); } diff --git a/libevmjit/Ext.h b/libevmjit/Ext.h index e6f1e4667..86a8a6190 100644 --- a/libevmjit/Ext.h +++ b/libevmjit/Ext.h @@ -65,8 +65,8 @@ private: llvm::Value* m_size; llvm::Value* m_data = nullptr; - std::array::value> m_funcs = {{}}; - std::array m_argAllocas = {{}}; + std::array::value> m_funcs; + std::array m_argAllocas; size_t m_argCounter = 0; llvm::CallInst* createCall(EnvFunc _funcId, std::initializer_list const& _args);