Commit 6650efe2 authored by nagayama15's avatar nagayama15

Update Binaryen

parent 4bf1e9f1
...@@ -333,20 +333,10 @@ namespace wasm { ...@@ -333,20 +333,10 @@ namespace wasm {
} }
inline bool operator<(const ExpressionList &lhs, const ExpressionList &rhs) noexcept { inline bool operator<(const ExpressionList &lhs, const ExpressionList &rhs) noexcept {
auto lIt = lhs.begin(); return std::lexicographical_compare(
auto lEnd = lhs.end(); std::begin(lhs), std::end(lhs), std::begin(rhs), std::end(rhs), [](const auto &a, const auto &b) {
auto rIt = rhs.begin(); return *a < *b;
auto rEnd = rhs.end(); });
for (; lIt != lEnd && rIt != rEnd; ++lIt, ++rIt) {
if (**lIt < **rIt) {
return true;
} else if (**rIt < **lIt) {
return false;
}
}
return !(lIt != lEnd) && rIt != rEnd;
} }
} // namespace wasm } // namespace wasm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment