Skip to content

Commit

Permalink
Revert "[FileCheck] Fix parsing empty global and pseudo variable name…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovdan01 committed Mar 2, 2024
1 parent fb67dce commit 28b354a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
6 changes: 0 additions & 6 deletions llvm/lib/FileCheck/FileCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ Pattern::parseVariable(StringRef &Str, const SourceMgr &SM) {
if (Str[0] == '$' || IsPseudo)
++I;

if (I == Str.size())
return ErrorDiagnostic::get(SM, Str.slice(I, StringRef::npos),
StringRef("empty ") +
(IsPseudo ? "pseudo " : "global ") +
"variable name");

if (!isValidVarNameStart(Str[I++]))
return ErrorDiagnostic::get(SM, Str, "invalid variable name");

Expand Down
32 changes: 0 additions & 32 deletions llvm/test/FileCheck/empty-variable-name.txt

This file was deleted.

0 comments on commit 28b354a

Please sign in to comment.