Do not use the member in checkRepresentation

This commit is contained in:
Alex Beregszaszi
2017-04-27 14:06:58 +01:00
parent c1e14d0119
commit 0e91b8fb98
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ public:
{
m_routine = findRepresentation(m_value);
assertThrow(
checkRepresentation(m_value),
checkRepresentation(m_value, m_routine),
OptimizerException,
"Invalid constant expression created."
);
@@ -151,7 +151,7 @@ protected:
/// Tries to recursively find a way to compute @a _value.
AssemblyItems findRepresentation(u256 const& _value);
/// Recomputes the value from the calculated representation and checks for correctness.
bool checkRepresentation(u256 const& _value);
bool checkRepresentation(u256 const& _value, AssemblyItems const& _routine);
bigint gasNeeded(AssemblyItems const& _routine);
/// Counter for the complexity of optimization, will stop when it reaches zero.