We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0385a18 commit cc54ee8Copy full SHA for cc54ee8
clang/lib/Sema/SemaHLSL.cpp
@@ -940,8 +940,7 @@ void SemaHLSL::checkSemanticAnnotation(
940
DiagnoseAttrStageMismatch(SemanticAttr, ST, {llvm::Triple::Compute});
941
942
if (SemanticAttr->getSemanticIndex() != 0) {
943
- Twine PrettyName =
944
- std::string("'") + SemanticAttr->getSemanticName() + "'";
+ Twine PrettyName = "'" + SemanticAttr->getSemanticName() + "'";
945
Diag(SemanticAttr->getLoc(),
946
diag::err_hlsl_semantic_indexing_not_supported)
947
<< PrettyName.str();
0 commit comments