From c598b98bf8d6382d29f62010f26d8d330739603c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Dec 2024 07:09:03 -0500 Subject: [PATCH] cpuinfo: Cover all execution paths Ensures this always returns valid return values. Extremely unlikely to have ever been hit, but this makes it well-defined. --- src/cpuinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpuinfo.cpp b/src/cpuinfo.cpp index b9122c2..60274fa 100644 --- a/src/cpuinfo.cpp +++ b/src/cpuinfo.cpp @@ -411,6 +411,8 @@ bool CPUInfo::Has(RISCVExtension extension) const { case RISCVExtension::Zawrs: return (features0 & RISCV_HWPROBE_EXT_ZAWRS) != 0; } + + return false; } uint32_t CPUInfo::GetVlenb() const {