OSDN Git Service

Try to fix the MSVC build
authorVedant Kumar <vsk@apple.com>
Sat, 25 Jun 2016 03:27:29 +0000 (03:27 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 25 Jun 2016 03:27:29 +0000 (03:27 +0000)
There's some kind of issue with using "constexpr unsigned" in an
anonymous namespace.

http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/13395

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273770 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/SourceCoverageViewText.cpp

index a7cb507..50c8760 100644 (file)
@@ -19,8 +19,8 @@ using namespace llvm;
 
 namespace {
 
-constexpr unsigned LineCoverageColumnWidth = 7;
-constexpr unsigned LineNumberColumnWidth = 5;
+static const unsigned LineCoverageColumnWidth = 7;
+static const unsigned LineNumberColumnWidth = 5;
 
 /// \brief Get the width of the leading columns.
 unsigned getCombinedColumnWidth(const CoverageViewOptions &Opts) {