From f1be391bed5332a4926f1007790f7bd02a9d4bfa Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 6 Oct 2021 13:32:18 +0100 Subject: [PATCH] [polly] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine) As described on D111049, we're trying to remove the dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared. --- polly/lib/Analysis/ScopDetection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 4dfcf34..045d0f9 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -329,7 +329,8 @@ static bool doesStringMatchAnyRegex(StringRef Str, std::string Err; if (!R.isValid(Err)) - report_fatal_error("invalid regex given as input to polly: " + Err, true); + report_fatal_error(Twine("invalid regex given as input to polly: ") + Err, + true); if (R.match(Str)) return true; -- 2.7.4