diff options
author | chriseth <chris@ethereum.org> | 2017-05-24 01:21:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-26 21:08:27 +0800 |
commit | 261731f7eea48902983c55163d377e26bbca07da (patch) | |
tree | 42b1c3c91e36fad0b5a35232ffca0fa0687c9090 /libsolidity/analysis/TypeChecker.cpp | |
parent | 71b923cc36d33bf3e173f2210b33895df49fcbba (diff) | |
download | dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar.gz dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar.bz2 dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar.lz dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar.xz dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.tar.zst dexon-solidity-261731f7eea48902983c55163d377e26bbca07da.zip |
Adapt EVM codegen to new namespace.
Diffstat (limited to 'libsolidity/analysis/TypeChecker.cpp')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 8161a3a1..ad22cc66 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -631,9 +631,9 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly) { // External references have already been resolved in a prior stage and stored in the annotation. // We run the resolve step again regardless. - assembly::ExternalIdentifierAccess::Resolver identifierAccess = [&]( + julia::ExternalIdentifierAccess::Resolver identifierAccess = [&]( assembly::Identifier const& _identifier, - assembly::IdentifierContext _context + julia::IdentifierContext _context ) { auto ref = _inlineAssembly.annotation().externalReferences.find(&_identifier); @@ -650,7 +650,7 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly) typeError(_identifier.location, "The suffixes _offset and _slot can only be used on storage variables."); return size_t(-1); } - else if (_context != assembly::IdentifierContext::RValue) + else if (_context != julia::IdentifierContext::RValue) { typeError(_identifier.location, "Storage variables cannot be assigned to."); return size_t(-1); @@ -677,13 +677,13 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly) return size_t(-1); } } - else if (_context == assembly::IdentifierContext::LValue) + else if (_context == julia::IdentifierContext::LValue) { typeError(_identifier.location, "Only local variables can be assigned to in inline assembly."); return size_t(-1); } - if (_context == assembly::IdentifierContext::RValue) + if (_context == julia::IdentifierContext::RValue) { solAssert(!!declaration->type(), "Type of declaration required but not yet determined."); if (dynamic_cast<FunctionDefinition const*>(declaration)) |