aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
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
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')
-rw-r--r--libsolidity/codegen/CompilerUtils.h8
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h
index 5e45699b..b239bde6 100644
--- a/libsolidity/codegen/CompilerUtils.h
+++ b/libsolidity/codegen/CompilerUtils.h
@@ -102,10 +102,10 @@ public:
/// @note the locations of target reference types are ignored, because it will always be
/// memory.
void encodeToMemory(
- TypePointers const& _givenTypes = {},
- TypePointers const& _targetTypes = {},
- bool _padToWords = true,
- bool _copyDynamicDataInPlace = false,
+ TypePointers const& _givenTypes,
+ TypePointers const& _targetTypes,
+ bool _padToWords,
+ bool _copyDynamicDataInPlace,
bool _encodeAsLibraryTypes = false
);
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);