Browse Source

Fix GasMeter not nulling cost call

cl-refactor
Paweł Bylica 10 years ago
parent
commit
15714cecf6
  1. 1
      libevmjit/GasMeter.cpp

1
libevmjit/GasMeter.cpp

@ -168,6 +168,7 @@ void GasMeter::commitCostBlock(llvm::Value* _additionalCost)
if (m_blockCost == 0 && !_additionalCost) // Do not check 0 if (m_blockCost == 0 && !_additionalCost) // Do not check 0
{ {
m_checkCall->eraseFromParent(); // Remove the gas check call m_checkCall->eraseFromParent(); // Remove the gas check call
m_checkCall = nullptr;
return; return;
} }

Loading…
Cancel
Save