From fc1825825040e10f2a8ebd8cc1a2aadda5302b84 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 7 Feb 2019 12:02:15 +0100 Subject: [PATCH] Remove type check that is covered by assertions. --- libsolidity/codegen/ABIFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp index 2c043b277..1652d4278 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -569,7 +569,7 @@ string ABIFunctions::abiEncodingFunction( )"); templ("functionName", functionName); - if (_from.dataStoredIn(DataLocation::Storage) && to.isValueType()) + if (_from.dataStoredIn(DataLocation::Storage)) { // special case: convert storage reference type to value type - this is only // possible for library calls where we just forward the storage reference