[libc-commits] [libc] c2ab3d2 - LibcBenchmark.h - add missing implicit cmath header dependency. NFCI.

Simon Pilgrim via libc-commits libc-commits at lists.llvm.org
Sun Jun 6 02:39:45 PDT 2021


Author: Simon Pilgrim
Date: 2021-06-06T10:39:31+01:00
New Revision: c2ab3d2c85c8af4483f05d8bb702891cd3682969

URL: https://github.com/llvm/llvm-project/commit/c2ab3d2c85c8af4483f05d8bb702891cd3682969
DIFF: https://github.com/llvm/llvm-project/commit/c2ab3d2c85c8af4483f05d8bb702891cd3682969.diff

LOG: LibcBenchmark.h - add missing implicit cmath header dependency. NFCI.

Noticed while investigating if we can remove an unnecessary MathExtras.h include from SmallVector.h

Added: 
    

Modified: 
    libc/benchmarks/LibcBenchmark.h

Removed: 
    


################################################################################
diff  --git a/libc/benchmarks/LibcBenchmark.h b/libc/benchmarks/LibcBenchmark.h
index af6173ab41a01..b459eb9729378 100644
--- a/libc/benchmarks/LibcBenchmark.h
+++ b/libc/benchmarks/LibcBenchmark.h
@@ -36,6 +36,7 @@
 #include "llvm/ADT/SmallVector.h"
 #include <array>
 #include <chrono>
+#include <cmath>
 #include <cstdint>
 
 namespace llvm {


        


More information about the libc-commits mailing list