[clang][Diagnostics][NFC] Remove unnecessary StringRef
authorTimm Bäder <tbaeder@redhat.com>
Wed, 24 May 2023 07:03:26 +0000 (09:03 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 08:21:24 +0000 (10:21 +0200)
commita806b3f49667f3aa0800572b84f91b77654e29fd
treeefe3548ff8476c530899f81af931800c331cc615
parent3184fb958091f6b119c878e2eab894d799432686
[clang][Diagnostics][NFC] Remove unnecessary StringRef

Seems unnecessary to create a StringRef here just so we can drop the
trailing null bytes. We can do that with the std::string we
create anyway.

Differential Revision: https://reviews.llvm.org/D151300
clang/lib/Frontend/TextDiagnostic.cpp