diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 3fdc7c90c3ad..dcd2a873f204 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -2962,6 +2962,7 @@ validateInstruction(MCInst &Inst, if (widthm1 >= 32 - lsb) return Error(Operands[5]->getStartLoc(), "bitfield width must be in range [1,32-lsb]"); + return false; } }