diff options
Diffstat (limited to 'Assembly.cpp')
-rw-r--r-- | Assembly.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Assembly.cpp b/Assembly.cpp index c96b6f40..a9b70eb4 100644 --- a/Assembly.cpp +++ b/Assembly.cpp @@ -337,6 +337,11 @@ Assembly& Assembly::optimise(bool _enable, bool _isCreation, size_t _runs) // This might happen if the opcode reconstruction is not as efficient // as the hand-crafted code. } + catch (ItemNotAvailableException const&) + { + // This might happen if e.g. associativity and commutativity rules + // reorganise the expression tree, but not all leaves are available. + } if (shouldReplace) { |