aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-21 00:02:24 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-25 20:59:39 +0800
commite3ea90e997caf1d316252ad16ecb14c4d6163da5 (patch)
treec2ec90b16cacc0ad85e9aa20f5c6294a089bb873 /Types.cpp
parent011d95e7e348908b1027dea922a429517cdebf07 (diff)
downloaddexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.tar.gz
dexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.tar.zst
dexon-solidity-e3ea90e997caf1d316252ad16ecb14c4d6163da5.zip
added check for events and stat variables
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/Types.cpp b/Types.cpp
index 82c28a39..7b4d1de2 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -748,14 +748,12 @@ TypePointer ArrayType::externalType() const
return TypePointer();
if (m_isByteArray)
return shared_from_this();
- if (!(m_baseType->externalType()))
- {
+ if (!m_baseType->externalType())
return TypePointer();
- }
- if (dynamic_cast<ArrayType const*>(m_baseType.get()) && m_baseType->isDynamicallySized())
+ if (m_baseType->getCategory() == Category::Array && m_baseType->isDynamicallySized())
return TypePointer();
- if (m_baseType->isDynamicallySized())
+ if (isDynamicallySized())
return std::make_shared<ArrayType>(Location::CallData, m_baseType->externalType());
else
return std::make_shared<ArrayType>(Location::CallData, m_baseType->externalType(), m_length);