diff --git a/folly/algorithm/simd/Movemask.h b/folly/algorithm/simd/Movemask.h index a092dbb1077..5b4e6b482da 100644 --- a/folly/algorithm/simd/Movemask.h +++ b/folly/algorithm/simd/Movemask.h @@ -148,7 +148,9 @@ FOLLY_ERASE auto movemaskChars16Aarch64(uint8x16_t reg) { template FOLLY_ERASE uint64x1_t asUint64x1Aarch64(Reg reg) { - if constexpr (std::is_same_v) { + if constexpr (std::is_same_v) { + return reg; + } else if constexpr (std::is_same_v) { return vreinterpret_u64_u32(reg); } else if constexpr (std::is_same_v) { return vreinterpret_u64_u16(reg);