Skip to content

Commit 4560817

Browse files
authored
Merge pull request #30947 from owenv/verifier-asan-fix
[DiagnosticVerifier] Fix ASAN issue in the verifier
2 parents 6b9dd23 + 20d3afc commit 4560817

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ DiagnosticVerifier::Result DiagnosticVerifier::verifyFile(unsigned BufferID) {
644644
-> ActualFixitsPhrase {
645645
std::string actualFixitsStr = renderFixits(actualFixits, InputFile);
646646

647-
auto phrase = Twine("actual fix-it") +
648-
(actualFixits.size() >= 2 ? "s" : "") +
649-
" seen: " + actualFixitsStr;
650-
return ActualFixitsPhrase{phrase.str(), actualFixitsStr};
647+
return ActualFixitsPhrase{(Twine("actual fix-it") +
648+
(actualFixits.size() >= 2 ? "s" : "") +
649+
" seen: " + actualFixitsStr).str(),
650+
actualFixitsStr};
651651
};
652652

653653
auto emitFixItsError = [&](const char *location, const Twine &message,

0 commit comments

Comments
 (0)