diff options
Diffstat (limited to 'llvm/lib/MC/YAML.cpp')
-rw-r--r-- | llvm/lib/MC/YAML.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/MC/YAML.cpp b/llvm/lib/MC/YAML.cpp index 067e91a26d3..45db5c302ee 100644 --- a/llvm/lib/MC/YAML.cpp +++ b/llvm/lib/MC/YAML.cpp @@ -56,10 +56,6 @@ void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const { OS.write((const char *)Data.data(), Data.size()); return; } - for (ArrayRef<uint8_t>::iterator I = Data.begin(), E = Data.end(); I != E; - ++I) { - uint8_t Byte = *I; - OS << hexdigit(Byte >> 4); - OS << hexdigit(Byte & 0xf); - } + for (uint8_t Byte : Data) + OS << hexdigit(Byte >> 4) << hexdigit(Byte & 0xf); } |