Skip to content
Permalink
Browse files

[sancov][NFC] Make filename Regexes "const"

Summary:
The const-correctness of match() was fixed in rL372764, which allows
such static Regex objects to be marked const.

Reviewers: thopre

Reviewed By: thopre

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68091

llvm-svn: 373058
  • Loading branch information
Thomas Preud'homme
Thomas Preud'homme committed Sep 27, 2019
1 parent 2774457 commit b8cf059faccb794c47be6775f99457992ac6b2da
Showing with 2 additions and 2 deletions.
  1. +2 −2 llvm/tools/sancov/sancov.cpp
@@ -123,8 +123,8 @@ static const uint32_t BinCoverageMagic = 0xC0BFFFFF;
static const uint32_t Bitness32 = 0xFFFFFF32;
static const uint32_t Bitness64 = 0xFFFFFF64;

static Regex SancovFileRegex("(.*)\\.[0-9]+\\.sancov");
static Regex SymcovFileRegex(".*\\.symcov");
static const Regex SancovFileRegex("(.*)\\.[0-9]+\\.sancov");
static const Regex SymcovFileRegex(".*\\.symcov");

// --------- MAIN DATASTRUCTURES ----------

0 comments on commit b8cf059

Please sign in to comment.
You can’t perform that action at this time.