diff options
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 9658e0801d..58d01e8bd0 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -3015,7 +3015,7 @@ validateInstruction(MCInst &Inst, if (Reg == Rn) doesWriteback = false; // Anything other than a low register isn't legal here. - if (getARMRegisterNumbering(Reg) > 7) + if (!isARMLowRegister(Reg)) return Error(Operands[4]->getStartLoc(), "registers must be in range r0-r7"); } |