[C++2a] operator<=>: Fix incorrect use of Twine.

llvm-svn: 331713
This commit is contained in:
Eric Fiselier 2018-05-08 02:28:47 +00:00
parent 5e51fac39a
commit 4ed0fe04ef
1 changed files with 3 additions and 3 deletions

View File

@ -8938,10 +8938,10 @@ QualType Sema::CheckComparisonCategoryType(ComparisonCategoryType Kind,
// If lookup failed
if (!Info) {
auto NameForDiags =
llvm::Twine("std::") + ComparisonCategories::getCategoryString(Kind);
std::string NameForDiags = "std::";
NameForDiags += ComparisonCategories::getCategoryString(Kind);
Diag(Loc, diag::err_implied_comparison_category_type_not_found)
<< NameForDiags.str();
<< NameForDiags;
return QualType();
}