Skip to content

Commit

Permalink
[C++2a] operator<=>: Fix incorrect use of Twine.
Browse files Browse the repository at this point in the history
llvm-svn: 331713
  • Loading branch information
EricWF committed May 8, 2018
1 parent 5e51fac commit 4ed0fe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Sema/SemaDeclCXX.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4ed0fe0

Please sign in to comment.