From c9ca083d141eeb54ee95a78e294a9ce5a53ebef3 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Aug 2018 15:04:00 +0200 Subject: Fix data location of external reference parameters. --- libsolidity/analysis/ReferencesResolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity') diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp index 2cf09eff..fa0888dd 100644 --- a/libsolidity/analysis/ReferencesResolver.cpp +++ b/libsolidity/analysis/ReferencesResolver.cpp @@ -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; -- cgit