mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
MatchRegisterName() returns 0 if it can't match the register.
llvm-svn: 118339
This commit is contained in:
parent
f65f39e7a1
commit
f2e9379095
@ -387,8 +387,8 @@ int ARMAsmParser::TryParseRegister() {
|
||||
|
||||
// FIXME: Validate register for the current architecture; we have to do
|
||||
// validation later, so maybe there is no need for this here.
|
||||
int RegNum = MatchRegisterName(Tok.getString());
|
||||
if (RegNum == -1)
|
||||
unsigned RegNum = MatchRegisterName(Tok.getString());
|
||||
if (RegNum == 0)
|
||||
return -1;
|
||||
Parser.Lex(); // Eat identifier token.
|
||||
return RegNum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user