diff options
-rw-r--r-- | llvm/lib/Support/raw_ostream.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 2a9965ecc30..592cb96e894 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/lib/Support/raw_ostream.cpp @@ -181,9 +181,7 @@ raw_ostream &raw_ostream::write_hex(unsigned long long N) { raw_ostream &raw_ostream::write_escaped(StringRef Str, bool UseHexEscapes) { - for (unsigned i = 0, e = Str.size(); i != e; ++i) { - unsigned char c = Str[i]; - + for (unsigned char c : Str) { switch (c) { case '\\': *this << '\\' << '\\'; |