Prevent encoding of weird types and support packed encoding of external function types.

This commit is contained in:
chriseth authored and Alex Beregszaszi committed 2018-03-29 09:57:11 +01:00
1 parent c2ae33f806
commit 5c8a6aac69
11 files changed
+110 -4

No files matched your search

-1
View File
@@ -142,7 +142,6 @@ void CompilerUtils::storeInMemoryDynamic(Type const& _type, bool _padToWordBound
dynamic_cast<FunctionType const&>(_type).kind() == FunctionType::Kind::External
)
{
solUnimplementedAssert(_padToWordBoundaries, "Non-padded store for function not implemented.");
combineExternalFunctionType(true);
m_context << Instruction::DUP2 << Instruction::MSTORE;
m_context << u256(_padToWordBoundaries ? 32 : 24) << Instruction::ADD;