From 6afc66dc25f9b28d129f8bc842d43af0b0c71196 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 16 Jul 2013 05:03:10 +0000 Subject: [PATCH] Add 'const' qualifiers to static const char* variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186383 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 912d5c501d..d5636da969 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1592,8 +1592,8 @@ static const Stmt *getTerminatorCondition(const CFGBlock *B) { return S; } -static const char *StrEnteringLoop = "Entering loop body"; -static const char *StrLoopBodyZero = "Loop body executed 0 times"; +static const char *const StrEnteringLoop = "Entering loop body"; +static const char *const StrLoopBodyZero = "Loop body executed 0 times"; static bool GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, -- 2.50.1