mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Fix warnings
This commit is contained in:
parent
961166443c
commit
b8f9f3cffe
5 changed files with 10 additions and 6 deletions
|
|
@ -102,12 +102,12 @@ private:
|
|||
/// the item below the top and so on. The stack grows as the code
|
||||
/// accesses more items on the EVM stack but once a value is put on
|
||||
/// the stack, it will never be replaced.
|
||||
std::vector<llvm::Value*> m_initialStack = {};
|
||||
std::vector<llvm::Value*> m_initialStack;
|
||||
|
||||
/// This stack tracks the contents of the EVM stack as the basic block
|
||||
/// executes. It may grow on both sides, as the code pushes items on
|
||||
/// top of the stack or changes existing items.
|
||||
std::vector<llvm::Value*> m_currentStack = {};
|
||||
std::vector<llvm::Value*> m_currentStack;
|
||||
|
||||
/// How many items higher is the current stack than the initial one.
|
||||
/// May be negative.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <llvm/ExecutionEngine/ExecutionEngine.h>
|
||||
#include <llvm/ExecutionEngine/ObjectCache.h>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,13 @@
|
|||
|
||||
#include <llvm/IR/Module.h>
|
||||
#include <llvm/ADT/Triple.h>
|
||||
#pragma warning(push)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#include <llvm/ExecutionEngine/ExecutionEngine.h>
|
||||
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
|
||||
#pragma warning(pop)
|
||||
#pragma GCC diagnostic pop
|
||||
#include <llvm/ExecutionEngine/MCJIT.h>
|
||||
#include <llvm/Support/TargetSelect.h>
|
||||
#include <llvm/Support/Host.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);
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ private:
|
|||
Env& m_env; ///< Pointer to environment proxy. Expected by compiled contract.
|
||||
jmp_buf_ref m_currJmpBuf; ///< Pointer to jump buffer. Expected by compiled contract.
|
||||
byte* m_memoryData = nullptr;
|
||||
i256 m_memorySize = {};
|
||||
i256 m_memorySize;
|
||||
std::jmp_buf m_jmpBuf;
|
||||
StackImpl m_stack;
|
||||
MemoryImpl m_memory;
|
||||
|
|
|
|||
Loading…
Reference in a new issue