[PATCH] D60043: [FileCheck] Fix FileCheck.cpp compilation on Solaris
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 2 11:36:54 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL357509: [FileCheck] Fix FileCheck.cpp compilation on Solaris (authored by ro, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60043?vs=193276&id=193334#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60043/new/
https://reviews.llvm.org/D60043
Files:
llvm/trunk/utils/FileCheck/FileCheck.cpp
Index: llvm/trunk/utils/FileCheck/FileCheck.cpp
===================================================================
--- llvm/trunk/utils/FileCheck/FileCheck.cpp
+++ llvm/trunk/utils/FileCheck/FileCheck.cpp
@@ -21,6 +21,7 @@
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/FileCheck.h"
+#include <cmath>
using namespace llvm;
static cl::opt<std::string>
@@ -405,7 +406,7 @@
unsigned LineCount = InputFileText.count('\n');
if (InputFileEnd[-1] != '\n')
++LineCount;
- unsigned LineNoWidth = log10(LineCount) + 1;
+ unsigned LineNoWidth = std::log10(LineCount) + 1;
// +3 below adds spaces (1) to the left of the (right-aligned) line numbers
// on input lines and (2) to the right of the (left-aligned) labels on
// annotation lines so that input lines and annotation lines are more
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60043.193334.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190402/2f39b1f7/attachment.bin>
More information about the llvm-commits
mailing list