mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 07:27:33 +08:00
COFF: Fix lexer for the module-definition file.
Previously it would hang if there's a stray punctuation (e.g. ?). llvm-svn: 240697
This commit is contained in:
@@ -82,9 +82,7 @@ public:
|
||||
return Token(Identifier, S);
|
||||
}
|
||||
default: {
|
||||
size_t End = Buf.find_first_not_of(
|
||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"0123456789_.*~+!@#$%^&*()/");
|
||||
size_t End = Buf.find_first_of("=,\r\n \t\v");
|
||||
StringRef Word = Buf.substr(0, End);
|
||||
Kind K = llvm::StringSwitch<Kind>(Word)
|
||||
.Case("BASE", KwBase)
|
||||
|
||||
Reference in New Issue
Block a user