From 541d7e747a9db60bc9ec81f422b907a2a6ab4402 Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Fri, 1 Aug 2014 17:27:31 +0000 Subject: [PATCH] Add missing breaks to AArch64InstrInfo::isGPRCopy llvm-svn: 214528 --- llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index 946c000..1273606 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -1058,12 +1058,14 @@ bool AArch64InstrInfo::isGPRCopy(const MachineInstr *MI) const { MI->getOperand(3).getImm() == 0 && "invalid ORRrs operands"); return true; } + break; case AArch64::ADDXri: // add Xd, Xn, #0 (LSL #0) if (MI->getOperand(2).getImm() == 0) { assert(MI->getDesc().getNumOperands() == 4 && MI->getOperand(3).getImm() == 0 && "invalid ADDXri operands"); return true; } + break; } return false; } @@ -1086,6 +1088,7 @@ bool AArch64InstrInfo::isFPRCopy(const MachineInstr *MI) const { "invalid ORRv16i8 operands"); return true; } + break; } return false; } -- 2.7.4