Fix data location of external reference parameters.

This commit is contained in:
chriseth 2018-08-09 15:04:00 +02:00
parent 1f21136737
commit c9ca083d14

View File

@ -344,7 +344,7 @@ void ReferencesResolver::endVisit(VariableDeclaration const& _variable)
"(remove the \"memory\" or \"storage\" keyword)."
);
}
if (varLoc == Location::Default)
if (varLoc == Location::Default || varLoc == Location::CallData)
typeLoc = DataLocation::CallData;
else
typeLoc = varLoc == Location::Memory ? DataLocation::Memory : DataLocation::Storage;