Skip to content

Commit e1d58e4

Browse files
authored
Revert "[FileCheck] Fix parsing empty global and pseudo variable names (#82595)"
This reverts commit aab3d13.
1 parent aab3d13 commit e1d58e4

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

llvm/lib/FileCheck/FileCheck.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,6 @@ Pattern::parseVariable(StringRef &Str, const SourceMgr &SM) {
297297
if (Str[0] == '$' || IsPseudo)
298298
++I;
299299

300-
if (I == Str.size())
301-
return ErrorDiagnostic::get(SM, Str.slice(I, StringRef::npos),
302-
StringRef("empty ") +
303-
(IsPseudo ? "pseudo " : "global ") +
304-
"variable name");
305-
306300
if (!isValidVarNameStart(Str[I++]))
307301
return ErrorDiagnostic::get(SM, Str, "invalid variable name");
308302

llvm/test/FileCheck/empty-variable-name.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)