forked from OSchip/llvm-project
[C++2a] operator<=>: Fix incorrect use of Twine.
llvm-svn: 331713
This commit is contained in:
parent
5e51fac39a
commit
4ed0fe04ef
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue