Browse Source

Fix MSVC build

cl-refactor
Paweł Bylica 10 years ago
parent
commit
cb8fa0a5b2
  1. 4
      libevmjit/Ext.cpp
  2. 4
      libevmjit/Ext.h

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

4
libevmjit/Ext.h

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

Loading…
Cancel
Save