mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add gasleft constraint and use full member access name
This commit is contained in:
@@ -34,19 +34,19 @@ public:
|
||||
void resetIndex();
|
||||
|
||||
/// This function returns the current index of this SSA variable.
|
||||
int index() const { return m_currentIndex; }
|
||||
int& index() { return m_currentIndex; }
|
||||
unsigned index() const { return m_currentIndex; }
|
||||
unsigned& index() { return m_currentIndex; }
|
||||
|
||||
int operator++()
|
||||
unsigned operator++()
|
||||
{
|
||||
return m_currentIndex = (*m_nextFreeIndex)++;
|
||||
}
|
||||
|
||||
private:
|
||||
int m_currentIndex;
|
||||
unsigned m_currentIndex;
|
||||
/// The next free index is a shared pointer because we want
|
||||
/// the copy and the copied to share it.
|
||||
std::shared_ptr<int> m_nextFreeIndex;
|
||||
std::shared_ptr<unsigned> m_nextFreeIndex;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user