[PATCH] D68571: [Remarks] Pass StringBlockValue as StringRef.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 22:15:35 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373923: [Remarks] Pass StringBlockValue as StringRef. (authored by fhahn, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D68571?vs=223523&id=223747#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68571/new/
https://reviews.llvm.org/D68571
Files:
llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp
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<StringBlockVal> {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68571.223747.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191008/1fcbbd2d/attachment.bin>
More information about the llvm-commits
mailing list