diff --git a/lib/ObjectYAML/YAML.cpp b/lib/ObjectYAML/YAML.cpp index bfaa6944fc6..5dcb113d339 100644 --- a/lib/ObjectYAML/YAML.cpp +++ b/lib/ObjectYAML/YAML.cpp @@ -39,7 +39,7 @@ StringRef yaml::ScalarTraits::input(StringRef Scalar, void *, void yaml::BinaryRef::writeAsBinary(raw_ostream &OS, uint64_t N) const { if (!DataIsHexString) { - OS.write((const char *)Data.data(), std::min(N, Data.size())); + OS.write((const char *)Data.data(), std::min(N, Data.size())); return; }