summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopGraphPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/Analysis/ScopGraphPrinter.cpp')
-rw-r--r--polly/lib/Analysis/ScopGraphPrinter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp
index 607fe0c0498..992addeeb40 100644
--- a/polly/lib/Analysis/ScopGraphPrinter.cpp
+++ b/polly/lib/Analysis/ScopGraphPrinter.cpp
@@ -97,12 +97,11 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> {
static std::string escapeString(std::string String) {
std::string Escaped;
- for (std::string::iterator SI = String.begin(), SE = String.end(); SI != SE;
- ++SI) {
- if (*SI == '"')
+ for (const auto &C : String) {
+ if (C == '"')
Escaped += '\\';
- Escaped += *SI;
+ Escaped += C;
}
return Escaped;
}
OpenPOWER on IntegriCloud