[polly] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)
As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared.
GitOrigin-RevId: f1be391bed5332a4926f1007790f7bd02a9d4bfa
diff --git a/lib/Analysis/ScopDetection.cpp b/lib/Analysis/ScopDetection.cpp
index 4dfcf34..045d0f9 100644
--- a/lib/Analysis/ScopDetection.cpp
+++ b/lib/Analysis/ScopDetection.cpp
@@ -329,7 +329,8 @@
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;