Skip to content

Commit f6d8f55

Browse files
authored
[NFC][clang] cleanup dead code (llvm#164977)
Dead code probably left-over of some PR refactoring.
1 parent c0b27cf commit f6d8f55

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/Parse/ParseHLSL.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,9 @@ Parser::ParsedSemantic Parser::ParseHLSLSemantic() {
126126
// semantic index. The semantic index is the number at the end of
127127
// the semantic, including leading zeroes. Digits located before
128128
// the last letter are part of the semantic name.
129-
bool Invalid = false;
130129
SmallString<256> Buffer;
131130
Buffer.resize(Tok.getLength() + 1);
132131
StringRef Identifier = PP.getSpelling(Tok, Buffer);
133-
if (Invalid) {
134-
Diag(Tok.getLocation(), diag::err_expected_semantic_identifier);
135-
return {};
136-
}
137-
138132
assert(Identifier.size() > 0);
139133
// Determine the start of the semantic index.
140134
unsigned IndexIndex = Identifier.find_last_not_of("0123456789") + 1;

0 commit comments

Comments
 (0)