diff options
author | chriseth <chris@ethereum.org> | 2018-11-07 19:42:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 19:42:02 +0800 |
commit | a459b8c81ec92f39be67c2d373d120eb86140e00 (patch) | |
tree | 3ff90d9e6afde63d1217b37ed62ab6e98d1139fc /libyul/optimiser/SimplificationRules.cpp | |
parent | 88aee34c22d86a004848ae8bdc818b5168dd94cb (diff) | |
parent | ab0de38f16a9eff13ee5a32a3408b890d87941f6 (diff) | |
download | dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.gz dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.bz2 dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.lz dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.xz dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.zst dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.zip |
Merge pull request #5359 from ethereum/cpp17-forward-compat
Eliminate `byte`-typedef and use `uint8_t` in all their places instead.
Diffstat (limited to 'libyul/optimiser/SimplificationRules.cpp')
-rw-r--r-- | libyul/optimiser/SimplificationRules.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libyul/optimiser/SimplificationRules.cpp b/libyul/optimiser/SimplificationRules.cpp index aca943b0..8e94fe4d 100644 --- a/libyul/optimiser/SimplificationRules.cpp +++ b/libyul/optimiser/SimplificationRules.cpp @@ -46,7 +46,7 @@ SimplificationRule<Pattern> const* SimplificationRules::findFirstMatch( assertThrow(rules.isInitialized(), OptimizerException, "Rule list not properly initialized."); FunctionalInstruction const& instruction = boost::get<FunctionalInstruction>(_expr); - for (auto const& rule: rules.m_rules[byte(instruction.instruction)]) + for (auto const& rule: rules.m_rules[uint8_t(instruction.instruction)]) { rules.resetMatchGroups(); if (rule.pattern.matches(_expr, _ssaValues)) @@ -57,7 +57,7 @@ SimplificationRule<Pattern> const* SimplificationRules::findFirstMatch( bool SimplificationRules::isInitialized() const { - return !m_rules[byte(solidity::Instruction::ADD)].empty(); + return !m_rules[uint8_t(solidity::Instruction::ADD)].empty(); } void SimplificationRules::addRules(vector<SimplificationRule<Pattern>> const& _rules) @@ -68,7 +68,7 @@ void SimplificationRules::addRules(vector<SimplificationRule<Pattern>> const& _r void SimplificationRules::addRule(SimplificationRule<Pattern> const& _rule) { - m_rules[byte(_rule.pattern.instruction())].push_back(_rule); + m_rules[uint8_t(_rule.pattern.instruction())].push_back(_rule); } SimplificationRules::SimplificationRules() |