Skip to content

Commit

Permalink
Fix LLVM-19 compilation issue in faiss/AutoTune.cpp (#4220)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #4220

LLVM-19 is incoming. This fixes an issue preventing it. Delays to previous platform upgrades cost $3M/week.

Reviewed By: dtolnay

Differential Revision: D70449926

fbshipit-source-id: 20e0882b9363670d6c010e1c7870cb04155a3a9d
  • Loading branch information
r-barnes authored and facebook-github-bot committed Mar 3, 2025
1 parent 615c17e commit c109174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/AutoTune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ bool ParameterSpace::combination_ge(size_t c1, size_t c2) const {
}

#define DC(classname) \
const classname* ix = dynamic_cast<const classname*>(index)
[[maybe_unused]] const classname* ix = dynamic_cast<const classname*>(index)

static void init_pq_ParameterRange(
const ProductQuantizer& pq,
Expand Down

0 comments on commit c109174

Please sign in to comment.