mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Fix a problem in the code where ARMAsmParser::ParseShift() second argument
should have been a pointer to a reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67d1d1f832
commit
9d36962ab6
@ -50,7 +50,7 @@ private:
|
||||
|
||||
bool ParseMemory(ARMOperand &Op);
|
||||
|
||||
bool ParseShift(enum ShiftType *St, const MCExpr *ShiftAmount);
|
||||
bool ParseShift(enum ShiftType *St, const MCExpr *&ShiftAmount);
|
||||
|
||||
bool ParseOperand(ARMOperand &Op);
|
||||
|
||||
@ -414,7 +414,7 @@ bool ARMAsmParser::ParseMemory(ARMOperand &Op) {
|
||||
/// ( lsl | lsr | asr | ror ) , # shift_amount
|
||||
/// rrx
|
||||
/// and returns true if it parses a shift otherwise it returns false.
|
||||
bool ARMAsmParser::ParseShift(ShiftType *St, const MCExpr *ShiftAmount) {
|
||||
bool ARMAsmParser::ParseShift(ShiftType *St, const MCExpr *&ShiftAmount) {
|
||||
const AsmToken &Tok = getLexer().getTok();
|
||||
if (Tok.isNot(AsmToken::Identifier))
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user