Fix MSVC build

This commit is contained in:
Paweł Bylica 2015-01-09 15:30:13 +01:00
parent 47886c844a
commit cb8fa0a5b2
2 changed files with 5 additions and 3 deletions

View file

@ -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");
}

View file

@ -65,8 +65,8 @@ private:
llvm::Value* m_size;
llvm::Value* m_data = nullptr;
std::array<llvm::Function*, sizeOf<EnvFunc>::value> m_funcs = {{}};
std::array<llvm::Value*, 8> m_argAllocas = {{}};
std::array<llvm::Function*, sizeOf<EnvFunc>::value> m_funcs;
std::array<llvm::Value*, 8> m_argAllocas;
size_t m_argCounter = 0;
llvm::CallInst* createCall(EnvFunc _funcId, std::initializer_list<llvm::Value*> const& _args);