aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-18 07:15:08 +0800
committerChristian <c@ethdev.com>2015-02-18 07:15:32 +0800
commit197b184d256dcfc086ce1ff0e3f63e053aba2276 (patch)
treebe00c1a03aceebb3b35b25078ac6ebe201157aa7 /CompilerContext.h
parent294648b534e294554f5ceb8467667eac3a60a3f1 (diff)
downloaddexon-solidity-197b184d256dcfc086ce1ff0e3f63e053aba2276.tar.gz
dexon-solidity-197b184d256dcfc086ce1ff0e3f63e053aba2276.tar.zst
dexon-solidity-197b184d256dcfc086ce1ff0e3f63e053aba2276.zip
Fixes for assigning and deleting structs containing byte arrays.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r--CompilerContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h
index 6d6a65b6..f202d7f4 100644
--- a/CompilerContext.h
+++ b/CompilerContext.h
@@ -48,6 +48,7 @@ public:
bytes const& getCompiledContract(ContractDefinition const& _contract) const;
void adjustStackOffset(int _adjustment) { m_asm.adjustDeposit(_adjustment); }
+ unsigned getStackHeight() { solAssert(m_asm.deposit() >= 0, ""); return unsigned(m_asm.deposit()); }
bool isMagicGlobal(Declaration const* _declaration) const { return m_magicGlobals.count(_declaration) != 0; }
bool isLocalVariable(Declaration const* _declaration) const;