Fix GasMeter not nulling cost call

This commit is contained in:
Paweł Bylica 2014-10-17 10:51:58 +02:00
parent 0f4c8eb63f
commit 15714cecf6

View file

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