Skip to content

Commit e9c7470

Browse files
committed
[typechecker] Convert a std::string -> SmallString.
Just noticed this as I was reading the code.
1 parent b0b5b2a commit e9c7470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,9 +1386,9 @@ void swift::diagnoseMissingExplicitSendable(NominalTypeDecl *nominal) {
13861386
// based on the requirements harvested from instance storage.
13871387

13881388
// Form the where clause containing all of the requirements.
1389-
std::string whereClause;
1389+
SmallString<64> whereClause;
13901390
{
1391-
llvm::raw_string_ostream out(whereClause);
1391+
llvm::raw_svector_ostream out(whereClause);
13921392
llvm::interleaveComma(
13931393
requirements, out,
13941394
[&](const Requirement &req) {

0 commit comments

Comments
 (0)