llvm.org GIT mirror llvm / 9d36962
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 Kevin Enderby 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4949
5050 bool ParseMemory(ARMOperand &Op);
5151
52 bool ParseShift(enum ShiftType *St, const MCExpr *ShiftAmount);
52 bool ParseShift(enum ShiftType *St, const MCExpr *&ShiftAmount);
5353
5454 bool ParseOperand(ARMOperand &Op);
5555
413413 /// ( lsl | lsr | asr | ror ) , # shift_amount
414414 /// rrx
415415 /// and returns true if it parses a shift otherwise it returns false.
416 bool ARMAsmParser::ParseShift(ShiftType *St, const MCExpr *ShiftAmount) {
416 bool ARMAsmParser::ParseShift(ShiftType *St, const MCExpr *&ShiftAmount) {
417417 const AsmToken &Tok = getLexer().getTok();
418418 if (Tok.isNot(AsmToken::Identifier))
419419 return true;