From 39e9f5d3685f3cfca0df072928ad96d973704dff Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Tue, 16 Nov 2021 22:23:33 +0000 Subject: [PATCH] [libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party --- libc/benchmarks/LibcBenchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/benchmarks/LibcBenchmark.cpp b/libc/benchmarks/LibcBenchmark.cpp index cef595d75e0d..621e0468db68 100644 --- a/libc/benchmarks/LibcBenchmark.cpp +++ b/libc/benchmarks/LibcBenchmark.cpp @@ -15,7 +15,7 @@ namespace libc_benchmarks { void checkRequirements() { const auto &CpuInfo = benchmark::CPUInfo::Get(); - if (CpuInfo.scaling_enabled) + if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED) report_fatal_error( "CPU scaling is enabled, the benchmark real time measurements may be " "noisy and will incur extra overhead.");