Browse Source

Fix stack limit check

cl-refactor
Paweł Bylica 10 years ago
parent
commit
4cbc52afcf
  1. 2
      evmjit/libevmjit/RuntimeManager.cpp

2
evmjit/libevmjit/RuntimeManager.cpp

@ -127,7 +127,7 @@ RuntimeManager::RuntimeManager(llvm::IRBuilder<>& _builder, code_iterator _codeB
m_builder.SetInsertPoint(checkBB);
auto currSize = m_builder.CreateLoad(currSizePtr, "cur");
auto maxSize = m_builder.CreateNUWAdd(currSize, max, "maxSize");
auto ok = m_builder.CreateICmpULT(maxSize, m_builder.getInt64(1024), "ok");
auto ok = m_builder.CreateICmpULE(maxSize, m_builder.getInt64(1024), "ok");
m_builder.CreateCondBr(ok, updateBB, outOfStackBB, Type::expectTrue);
m_builder.SetInsertPoint(updateBB);

Loading…
Cancel
Save