mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Tidy up. Fix mismatched return types for error handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f18b6fe96d
commit
ef4d3ebe2a
@ -2552,16 +2552,12 @@ tryParseRegisterWithWriteBack(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
|||||||
if (getParser().ParseExpression(ImmVal))
|
if (getParser().ParseExpression(ImmVal))
|
||||||
return MatchOperand_ParseFail;
|
return MatchOperand_ParseFail;
|
||||||
const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
|
const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
|
||||||
if (!MCE) {
|
if (!MCE)
|
||||||
TokError("immediate value expected for vector index");
|
return TokError("immediate value expected for vector index");
|
||||||
return MatchOperand_ParseFail;
|
|
||||||
}
|
|
||||||
|
|
||||||
SMLoc E = Parser.getTok().getLoc();
|
SMLoc E = Parser.getTok().getLoc();
|
||||||
if (Parser.getTok().isNot(AsmToken::RBrac)) {
|
if (Parser.getTok().isNot(AsmToken::RBrac))
|
||||||
Error(E, "']' expected");
|
return Error(E, "']' expected");
|
||||||
return MatchOperand_ParseFail;
|
|
||||||
}
|
|
||||||
|
|
||||||
Parser.Lex(); // Eat right bracket token.
|
Parser.Lex(); // Eat right bracket token.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user