Author: Nathan Gauër
Date: 2025-10-24T13:30:37Z
New Revision: f6d8f55a41094bdce401521c0ce31d1ffde7b87a

URL: 
https://github.com/llvm/llvm-project/commit/f6d8f55a41094bdce401521c0ce31d1ffde7b87a
DIFF: 
https://github.com/llvm/llvm-project/commit/f6d8f55a41094bdce401521c0ce31d1ffde7b87a.diff

LOG: [NFC][clang] cleanup dead code (#164977)

Dead code probably left-over of some PR refactoring.

Added: 
    

Modified: 
    clang/lib/Parse/ParseHLSL.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Parse/ParseHLSL.cpp b/clang/lib/Parse/ParseHLSL.cpp
index 51f2aef869649..c727ee3a1f1a6 100644
--- a/clang/lib/Parse/ParseHLSL.cpp
+++ b/clang/lib/Parse/ParseHLSL.cpp
@@ -126,15 +126,9 @@ Parser::ParsedSemantic Parser::ParseHLSLSemantic() {
   // semantic index. The semantic index is the number at the end of
   // the semantic, including leading zeroes. Digits located before
   // the last letter are part of the semantic name.
-  bool Invalid = false;
   SmallString<256> Buffer;
   Buffer.resize(Tok.getLength() + 1);
   StringRef Identifier = PP.getSpelling(Tok, Buffer);
-  if (Invalid) {
-    Diag(Tok.getLocation(), diag::err_expected_semantic_identifier);
-    return {};
-  }
-
   assert(Identifier.size() > 0);
   // Determine the start of the semantic index.
   unsigned IndexIndex = Identifier.find_last_not_of("0123456789") + 1;


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to