aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-13 22:59:42 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-13 22:59:42 +0800
commit12e000e0d327ead61092c890d0e5a359a9b9a54d (patch)
tree0e2e54e42c7ceab279ff82351c244f40a344df10 /Compiler.cpp
parenta253abf0623aec5ebbf8fa8b4ec3b00596c724ee (diff)
downloaddexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.gz
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.bz2
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.lz
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.xz
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.zst
dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.zip
A first version of Natspec warning popup
- Runtime Contract code hash can now be retrieved from the Compiler - Using the hash the Natspec handler stores and later retrieves Natspec JSON for a given contract.
Diffstat (limited to 'Compiler.cpp')
-rw-r--r--Compiler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Compiler.cpp b/Compiler.cpp
index 782a7efe..bd6571b9 100644
--- a/Compiler.cpp
+++ b/Compiler.cpp
@@ -50,10 +50,9 @@ void Compiler::compileContract(ContractDefinition const& _contract, vector<Magic
function->accept(*this);
// Swap the runtime context with the creation-time context
- CompilerContext runtimeContext;
- swap(m_context, runtimeContext);
+ swap(m_context, m_runtimeContext);
initializeContext(_contract, _magicGlobals, _contracts);
- packIntoContractCreator(_contract, runtimeContext);
+ packIntoContractCreator(_contract, m_runtimeContext);
}
void Compiler::initializeContext(ContractDefinition const& _contract, vector<MagicVariableDeclaration const*> const& _magicGlobals,