Skip to content

Commit b62ca87

Browse files
committed
Fix missing return
1 parent 769470a commit b62ca87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/xsimd/xsimd_cpu_features_x86.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,11 @@ namespace xsimd
248248
inline cpuid_reg_t get_cpuid(int level, int count) noexcept
249249
{
250250
cpuid_reg_t reg = {};
251+
251252
#if !XSIMD_TARGET_X86
252253
(void)level;
253254
(void)count;
254-
return reg; // All bits to zero
255+
return {}; // All bits to zero
255256

256257
#elif defined(_MSC_VER)
257258
__cpuidex(reg, level, count);
@@ -275,6 +276,7 @@ namespace xsimd
275276
: "0"(level), "2"(count));
276277
#endif
277278
#endif
279+
return reg;
278280
}
279281

280282
inline xcr0_reg_t get_xcr0_low() noexcept

0 commit comments

Comments
 (0)