diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index a34fdb66cf25..7125e98c6e9c 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -763,7 +763,7 @@ ParseMemory(SmallVectorImpl &Operands) { E = Tok.getLoc(); Parser.Lex(); // Eat right bracket token. - int OffsetRegNum = 0; + int OffsetRegNum = -1; bool OffsetRegShifted = false; enum ShiftType ShiftType = Lsl; const MCExpr *ShiftAmount = 0;