From: Vedant Kumar Date: Sat, 25 Jun 2016 03:27:29 +0000 (+0000) Subject: Try to fix the MSVC build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49b4592c1a0aa1d71ef2c34adee9c08fb23c127c;p=llvm 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273770 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-cov/SourceCoverageViewText.cpp b/tools/llvm-cov/SourceCoverageViewText.cpp index a7cb5075583..50c87607ed0 100644 --- a/tools/llvm-cov/SourceCoverageViewText.cpp +++ b/tools/llvm-cov/SourceCoverageViewText.cpp @@ -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) {