Skip to content

Commit

Permalink
fix lint error about | with bools
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Oct 31, 2023
1 parent 4bc6ffa commit 1458a3a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/analysis/lattices/tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,39 +79,39 @@ template<Lattice... Ls> struct Tuple {
WASM_UNREACHABLE("unexpected comparison");
}

bool joinImpl(Element& joinee,
const Element& joiner,
std::index_sequence<>) const noexcept {
int joinImpl(Element& joinee,
const Element& joiner,
std::index_sequence<>) const noexcept {
// Base case: there is nothing left to join.
return false;
}

template<size_t I, size_t... Is>
bool joinImpl(Element& joinee,
const Element& joiner,
std::index_sequence<I, Is...>) const noexcept {
int joinImpl(Element& joinee,
const Element& joiner,
std::index_sequence<I, Is...>) const noexcept {
// Recursive case: join the current element and recurse to the next
// elements.
return std::get<I>(lattices).join(std::get<I>(joinee),
std::get<I>(joiner)) |
joinImpl(joinee, joiner, std::index_sequence<Is...>{});
}

bool meetImpl(Element& meetee,
const Element& meeter,
std::index_sequence<>) const noexcept {
int meetImpl(Element& meetee,
const Element& meeter,
std::index_sequence<>) const noexcept {
// Base case: there is nothing left to mee.
return false;
}

template<size_t I, size_t... Is>
bool meetImpl(Element& meetee,
const Element& meeter,
std::index_sequence<I, Is...>) const noexcept {
int meetImpl(Element& meetee,
const Element& meeter,
std::index_sequence<I, Is...>) const noexcept {
// Recursive case: meet the current element and recurse to the next
// elements.
return std::get<I>(lattices).meet(std::get<I>(meetee),
std::get<I>(meeter)) |
return (std::get<I>(lattices).meet(std::get<I>(meetee),
std::get<I>(meeter))) |
meetImpl(meetee, meeter, std::index_sequence<Is...>{});
}

Expand Down

0 comments on commit 1458a3a

Please sign in to comment.