aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-27 01:50:43 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-27 18:15:27 +0800
commita657d3b1a165d9ec14f9875db2380954f9ca37cf (patch)
tree0d59869bb934cd34b8e3a87d10ed7aa3d3c82536 /libsolidity/codegen/ExpressionCompiler.cpp
parent9c62647f19541f875590ff61bca9042e1139f9da (diff)
downloaddexon-solidity-a657d3b1a165d9ec14f9875db2380954f9ca37cf.tar.gz
dexon-solidity-a657d3b1a165d9ec14f9875db2380954f9ca37cf.tar.zst
dexon-solidity-a657d3b1a165d9ec14f9875db2380954f9ca37cf.zip
Make most of the parameters mandatory in encodeToMemory
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 58c64bce..5de24136 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -581,7 +581,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
_context << Instruction::ADD;
}
);
- utils().encodeToMemory(argumentTypes, function.parameterTypes());
+ utils().encodeToMemory(argumentTypes, function.parameterTypes(), true, false);
// now on stack: memory_end_ptr
// need: size, offset, endowment
utils().toSizeAfterFreeMemoryPointer();
@@ -751,7 +751,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
nonIndexedParamTypes.push_back(function.parameterTypes()[arg]);
}
utils().fetchFreeMemoryPointer();
- utils().encodeToMemory(nonIndexedArgTypes, nonIndexedParamTypes);
+ utils().encodeToMemory(nonIndexedArgTypes, nonIndexedParamTypes, true, false);
// need: topic1 ... topicn memsize memstart
utils().toSizeAfterFreeMemoryPointer();
m_context << logInstruction(numIndexed);