aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-10 01:40:15 +0800
committerGitHub <noreply@github.com>2018-08-10 01:40:15 +0800
commit6954f83a0c52d22ffae9bfbe24191547a7ef781f (patch)
treef532f7c4ba67ca13065a5fb498d3cfa253712571 /libsolidity
parentb6e352f694caa3f2d540b0995042db7b742b1b56 (diff)
parentc9ca083d141eeb54ee95a78e294a9ce5a53ebef3 (diff)
downloaddexon-solidity-6954f83a0c52d22ffae9bfbe24191547a7ef781f.tar.gz
dexon-solidity-6954f83a0c52d22ffae9bfbe24191547a7ef781f.tar.zst
dexon-solidity-6954f83a0c52d22ffae9bfbe24191547a7ef781f.zip
Merge pull request #4790 from ethereum/fixCalldata
Fix data location of external reference parameters.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/ReferencesResolver.cpp2
1 files changed, 1 insertions, 1 deletions
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;