Split external type into ecoding and interface type.

This commit is contained in:
chriseth
2015-10-06 14:19:56 +02:00
parent d2332769d3
commit 9cc7402c95
7 changed files with 128 additions and 55 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ void CompilerUtils::encodeToMemory(
TypePointers targetTypes = _targetTypes.empty() ? _givenTypes : _targetTypes;
solAssert(targetTypes.size() == _givenTypes.size(), "");
for (TypePointer& t: targetTypes)
t = t->mobileType()->externalType();
t = t->mobileType()->encodingType();
// Stack during operation:
// <v1> <v2> ... <vn> <mem_start> <dyn_head_1> ... <dyn_head_r> <end_of_mem>