[llvm] r373058 - [sancov][NFC] Make filename Regexes "const"
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 02:39:13 PDT 2019
Author: thopre
Date: Fri Sep 27 02:39:13 2019
New Revision: 373058
URL: http://llvm.org/viewvc/llvm-project?rev=373058&view=rev
Log:
[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
Modified:
llvm/trunk/tools/sancov/sancov.cpp
Modified: llvm/trunk/tools/sancov/sancov.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/sancov/sancov.cpp?rev=373058&r1=373057&r2=373058&view=diff
==============================================================================
--- llvm/trunk/tools/sancov/sancov.cpp (original)
+++ llvm/trunk/tools/sancov/sancov.cpp Fri Sep 27 02:39:13 2019
@@ -123,8 +123,8 @@ static const uint32_t BinCoverageMagic =
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 ----------
More information about the llvm-commits
mailing list