[llvm] e8423db - BranchProbability.cpp - add missing implicit cmath header dependency. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 5 13:15:39 PDT 2021
Author: Simon Pilgrim
Date: 2021-06-05T21:14:43+01:00
New Revision: e8423dbf355ad87fb20a11ed8d469ff87c8a545c
URL: https://github.com/llvm/llvm-project/commit/e8423dbf355ad87fb20a11ed8d469ff87c8a545c
DIFF: https://github.com/llvm/llvm-project/commit/e8423dbf355ad87fb20a11ed8d469ff87c8a545c.diff
LOG: BranchProbability.cpp - add missing implicit cmath header dependency. NFCI.
Noticed while investigating if we can remove an unnecessary MathExtras.h include from SmallVector.h (necessary for gcc builds but not MSVC)
Added:
Modified:
llvm/lib/Support/BranchProbability.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/BranchProbability.cpp b/llvm/lib/Support/BranchProbability.cpp
index 60d5478a9052..e3763449d16c 100644
--- a/llvm/lib/Support/BranchProbability.cpp
+++ b/llvm/lib/Support/BranchProbability.cpp
@@ -16,6 +16,7 @@
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
+#include <cmath>
using namespace llvm;
More information about the llvm-commits
mailing list