From 3e7163a1ac37997048e9ae477e76d88eb46ccacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 11 Jun 2015 16:11:27 +0200 Subject: [PATCH] Release aquired arg allocas in Ext::calldataload. --- libevmjit/Ext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libevmjit/Ext.cpp b/libevmjit/Ext.cpp index 9b1e0983b..b8b124ff5 100644 --- a/libevmjit/Ext.cpp +++ b/libevmjit/Ext.cpp @@ -119,6 +119,7 @@ llvm::Value* Ext::calldataload(llvm::Value* _idx) auto pad = m_builder.CreateGEP(Type::Byte, result, copySize); m_builder.CreateMemSet(pad, m_builder.getInt8(0), padSize, 1); + m_argCounter = 0; // Release args allocas. TODO: This is a bad design return Endianness::toNative(m_builder, m_builder.CreateLoad(ret)); }