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 e5e9c3b commit 6b7a015Copy full SHA for 6b7a015
clang/lib/Sema/SemaHLSL.cpp
@@ -940,7 +940,8 @@ void SemaHLSL::checkSemanticAnnotation(
940
DiagnoseAttrStageMismatch(SemanticAttr, ST, {llvm::Triple::Compute});
941
942
if (SemanticAttr->getSemanticIndex() != 0) {
943
- Twine PrettyName = "'" + SemanticAttr->getSemanticName() + "'";
+ Twine PrettyName =
944
+ std::string("'") + SemanticAttr->getSemanticName() + "'";
945
Diag(SemanticAttr->getLoc(),
946
diag::err_hlsl_semantic_indexing_not_supported)
947
<< PrettyName.str();
0 commit comments