Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Fix LLVM 14 build regression under macOS#1492

Closed
laurynas-biveinis wants to merge 1 commit into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:llvm-14-fix
Closed

Fix LLVM 14 build regression under macOS#1492
laurynas-biveinis wants to merge 1 commit into
facebook:fb-mysql-8.0.32from
laurynas-biveinis:llvm-14-fix

Conversation

@laurynas-biveinis

Copy link
Copy Markdown
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
Copy Markdown

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

@facebook-github-bot

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

2 participants