Skip to content

Conversation

@laurynas-biveinis
Copy link
Contributor

This fixes, trivially:

sql/xa/recovery.cc:234:33: error: invalid operands to binary expression ('std::pair<int64_t, int64_t>' (aka 'pair<long long, long long>') and 'pair<typename __unwrap_ref_decay::type, typename __unwrap_ref_decay::type>' (aka 'pair<long, long>'))
if (info->smallest_lwm_opid == std::make_pair(-1L, -1L) ||
~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~

Squash with 9fc35fa

This fixes the same class of errors as 2dc2bdd,
but the current error does not trigger with XCode clang for some reason, and is
only visible with LLVM 14 (possibly other versions too) from Homebrew.

This fixes, trivially:

sql/xa/recovery.cc:234:33: error: invalid operands to binary expression ('std::pair<int64_t, int64_t>' (aka 'pair<long long, long long>') and 'pair<typename __unwrap_ref_decay<long>::type, typename __unwrap_ref_decay<long>::type>' (aka 'pair<long, long>'))
    if (info->smallest_lwm_opid == std::make_pair(-1L, -1L) ||
        ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~

Squash with 9fc35fa

This fixes the same class of errors as 2dc2bdd,
but the current error does not trigger with XCode clang for some reason, and is
only visible with LLVM 14 (possibly other versions too) from Homebrew.
@facebook-github-bot
Copy link

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

This pull request has been merged in 6e0be94.

@laurynas-biveinis laurynas-biveinis deleted the llvm-14-fix branch October 7, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants