Skip to content

Commit 541d7e7

Browse files
committed
Add missing breaks to AArch64InstrInfo::isGPRCopy
llvm-svn: 214528
1 parent 362f5de commit 541d7e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,12 +1058,14 @@ bool AArch64InstrInfo::isGPRCopy(const MachineInstr *MI) const {
10581058
MI->getOperand(3).getImm() == 0 && "invalid ORRrs operands");
10591059
return true;
10601060
}
1061+
break;
10611062
case AArch64::ADDXri: // add Xd, Xn, #0 (LSL #0)
10621063
if (MI->getOperand(2).getImm() == 0) {
10631064
assert(MI->getDesc().getNumOperands() == 4 &&
10641065
MI->getOperand(3).getImm() == 0 && "invalid ADDXri operands");
10651066
return true;
10661067
}
1068+
break;
10671069
}
10681070
return false;
10691071
}
@@ -1086,6 +1088,7 @@ bool AArch64InstrInfo::isFPRCopy(const MachineInstr *MI) const {
10861088
"invalid ORRv16i8 operands");
10871089
return true;
10881090
}
1091+
break;
10891092
}
10901093
return false;
10911094
}

0 commit comments

Comments
 (0)