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:
Kevin Enderby 2009-10-12 22:39:54 +00:00
parent 67d1d1f832
commit 9d36962ab6

View File

@ -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;