]> granicus.if.org Git - llvm/commit
[Remarks] Pass StringBlockValue as StringRef.
authorFlorian Hahn <flo@fhahn.com>
Mon, 7 Oct 2019 17:05:09 +0000 (17:05 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 7 Oct 2019 17:05:09 +0000 (17:05 +0000)
commit297307653d0e26d236d65fadccb15a21522d845e
treee528e3498bcfd21d0bb4250b8017d44f2541749f
parentd4aecc52fc58db2f0ea683cc66bda7beeb43181e
[Remarks] Pass StringBlockValue as StringRef.

After changing the remark serialization, we now pass StringRefs to the
serializer. We should use StringRef for StringBlockVal, to avoid
creating temporary objects, which then cause StringBlockVal.Value to
point to invalid memory.

Reviewers: thegameg, anemet

Reviewed By: thegameg

Differential Revision: https://reviews.llvm.org/D68571

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Remarks/YAMLRemarkSerializer.cpp