diff options
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r-- | llvm/lib/Object/YAML.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Object/YAML.cpp b/llvm/lib/Object/YAML.cpp index c527bde090e..61e9da30395 100644 --- a/llvm/lib/Object/YAML.cpp +++ b/llvm/lib/Object/YAML.cpp @@ -51,10 +51,8 @@ void BinaryRef::writeAsBinary(raw_ostream &OS) const { } void BinaryRef::writeAsHex(raw_ostream &OS) const { - if (binary_size() == 0) { - OS << "\"\""; + if (binary_size() == 0) return; - } if (DataIsHexString) { OS.write((const char *)Data.data(), Data.size()); return; |