aboutsummaryrefslogtreecommitdiff
path: root/libc/benchmarks
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2021-11-16 22:23:33 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2021-11-16 22:24:49 +0000
commit39e9f5d3685f3cfca0df072928ad96d973704dff (patch)
treed731482c55615a33bb3a77a42748db7bb5aafbb6 /libc/benchmarks
parent25bcd94234530955c58c6530a9271c813827637c (diff)
downloadllvm-39e9f5d3685f3cfca0df072928ad96d973704dff.zip
llvm-39e9f5d3685f3cfca0df072928ad96d973704dff.tar.gz
llvm-39e9f5d3685f3cfca0df072928ad96d973704dff.tar.bz2
[libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party
Diffstat (limited to 'libc/benchmarks')
-rw-r--r--libc/benchmarks/LibcBenchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/benchmarks/LibcBenchmark.cpp b/libc/benchmarks/LibcBenchmark.cpp
index cef595d..621e046 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.");