aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-09 21:04:00 +0800
committerchriseth <chris@ethereum.org>2018-08-09 21:04:00 +0800
commitc9ca083d141eeb54ee95a78e294a9ce5a53ebef3 (patch)
tree73a1404de87bd240ac7d31ceb9e9626bd06f1ba5 /libsolidity
parent1f21136737bb5a9129cfb40f331fbc6e9d3036a2 (diff)
downloaddexon-solidity-c9ca083d141eeb54ee95a78e294a9ce5a53ebef3.tar.gz
dexon-solidity-c9ca083d141eeb54ee95a78e294a9ce5a53ebef3.tar.zst
dexon-solidity-c9ca083d141eeb54ee95a78e294a9ce5a53ebef3.zip
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;