Skip to content

Commit 6b7a015

Browse files
committed
Revert "[clang][HLSL] Fix crash issue due to Twine usage"
This reverts commit cc54ee8.
1 parent e5e9c3b commit 6b7a015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,8 @@ void SemaHLSL::checkSemanticAnnotation(
940940
DiagnoseAttrStageMismatch(SemanticAttr, ST, {llvm::Triple::Compute});
941941

942942
if (SemanticAttr->getSemanticIndex() != 0) {
943-
Twine PrettyName = "'" + SemanticAttr->getSemanticName() + "'";
943+
Twine PrettyName =
944+
std::string("'") + SemanticAttr->getSemanticName() + "'";
944945
Diag(SemanticAttr->getLoc(),
945946
diag::err_hlsl_semantic_indexing_not_supported)
946947
<< PrettyName.str();

0 commit comments

Comments
 (0)