[llvm] r273770 - Try to fix the MSVC build

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 20:27:29 PDT 2016


Author: vedantk
Date: Fri Jun 24 22:27:29 2016
New Revision: 273770

URL: http://llvm.org/viewvc/llvm-project?rev=273770&view=rev
Log:
Try to fix the MSVC build

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

Modified:
    llvm/trunk/tools/llvm-cov/SourceCoverageViewText.cpp

Modified: llvm/trunk/tools/llvm-cov/SourceCoverageViewText.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/SourceCoverageViewText.cpp?rev=273770&r1=273769&r2=273770&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/SourceCoverageViewText.cpp (original)
+++ llvm/trunk/tools/llvm-cov/SourceCoverageViewText.cpp Fri Jun 24 22:27:29 2016
@@ -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) {




More information about the llvm-commits mailing list