Index: llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp =================================================================== --- llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp +++ llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp @@ -103,7 +103,7 @@ /// newlines in strings. struct StringBlockVal { StringRef Value; - StringBlockVal(const std::string &Value) : Value(Value) {} + StringBlockVal(StringRef R) : Value(R) {} }; template <> struct BlockScalarTraits {