Store all stack errors before they are thrown.

This commit is contained in:
chriseth
2019-02-04 17:32:05 +01:00
parent 77baf6caf7
commit 22c8d74a8a
3 changed files with 37 additions and 5 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ private:
/// Determines the stack height difference to the given variables. Throws
/// if it is not yet in scope or the height difference is too large. Returns
/// the (positive) stack height difference otherwise.
int variableHeightDiff(Scope::Variable const& _var, YulString _name, bool _forSwap) const;
int variableHeightDiff(Scope::Variable const& _var, YulString _name, bool _forSwap);
void expectDeposit(int _deposit, int _oldHeight) const;