Fix ARMAsmParser::ParseMemoryOffsetReg() where the parameter OffsetRegNum should

have been passed as a reference.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby 2009-11-02 20:14:39 +00:00
parent 3774c91854
commit 60131c0d0b

View File

@ -56,7 +56,7 @@ private:
const MCExpr *&ShiftAmount, const MCExpr *&ShiftAmount,
const MCExpr *&Offset, const MCExpr *&Offset,
bool &OffsetIsReg, bool &OffsetIsReg,
int OffsetRegNum); int &OffsetRegNum);
bool ParseShift(enum ShiftType &St, const MCExpr *&ShiftAmount); bool ParseShift(enum ShiftType &St, const MCExpr *&ShiftAmount);
@ -393,7 +393,7 @@ bool ARMAsmParser::ParseMemoryOffsetReg(bool &Negative,
const MCExpr *&ShiftAmount, const MCExpr *&ShiftAmount,
const MCExpr *&Offset, const MCExpr *&Offset,
bool &OffsetIsReg, bool &OffsetIsReg,
int OffsetRegNum) { int &OffsetRegNum) {
ARMOperand Op; ARMOperand Op;
Negative = false; Negative = false;
OffsetRegShifted = false; OffsetRegShifted = false;