Fix ARMAsmParser::ParseMemoryOffsetReg() where the parameter OffsetRegNum should
authorKevin Enderby <enderby@apple.com>
Mon, 2 Nov 2009 20:14:39 +0000 (20:14 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 2 Nov 2009 20:14:39 +0000 (20:14 +0000)
have been passed as a reference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85823 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

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