BranchProbability.cpp - add missing implicit cmath header dependency. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Jun 2021 20:14:18 +0000 (21:14 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Jun 2021 20:14:43 +0000 (21:14 +0100)
Noticed while investigating if we can remove an unnecessary MathExtras.h include from SmallVector.h (necessary for gcc builds but not MSVC)

llvm/lib/Support/BranchProbability.cpp

index 60d5478..e376344 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cassert>
+#include <cmath>
 
 using namespace llvm;