From 520789e139565fa588f172700908d5c8fe8f6876 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 12 Feb 2018 21:11:23 +0000 Subject: [PATCH] Fix the syntax highlighting of strings in dwarfdump. llvm-svn: 324936 --- llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp index b2adab7..1f00dec 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -587,10 +587,10 @@ void DWARFFormValue::dump(raw_ostream &OS, DIDumpOptions DumpOpts) const { void DWARFFormValue::dumpString(raw_ostream &OS) const { Optional DbgStr = getAsCString(); if (DbgStr.hasValue()) { - raw_ostream &COS = WithColor(OS, syntax::String); - COS << '"'; - COS.write_escaped(DbgStr.getValue()); - COS << '"'; + auto COS = WithColor(OS, syntax::String); + COS.get() << '"'; + COS.get().write_escaped(DbgStr.getValue()); + COS.get() << '"'; } } -- 2.7.4