There was an error while loading. Please reload this page.
1 parent c0b27cf commit f6d8f55Copy full SHA for f6d8f55
clang/lib/Parse/ParseHLSL.cpp
@@ -126,15 +126,9 @@ Parser::ParsedSemantic Parser::ParseHLSLSemantic() {
126
// semantic index. The semantic index is the number at the end of
127
// the semantic, including leading zeroes. Digits located before
128
// the last letter are part of the semantic name.
129
- bool Invalid = false;
130
SmallString<256> Buffer;
131
Buffer.resize(Tok.getLength() + 1);
132
StringRef Identifier = PP.getSpelling(Tok, Buffer);
133
- if (Invalid) {
134
- Diag(Tok.getLocation(), diag::err_expected_semantic_identifier);
135
- return {};
136
- }
137
-
138
assert(Identifier.size() > 0);
139
// Determine the start of the semantic index.
140
unsigned IndexIndex = Identifier.find_last_not_of("0123456789") + 1;
0 commit comments