Skip to content

Commit 7ac9662

Browse files
committed
[AArch64][GlobalISel] Add missing default statement to a switch in the selector.
1 parent aa3c877 commit 7ac9662

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,9 @@ static Optional<int64_t> getVectorSHLImm(LLT SrcTy, Register Reg, MachineRegiste
10431043
if (Imm < 0)
10441044
return None;
10451045
switch (SrcTy.getElementType().getSizeInBits()) {
1046+
default:
1047+
LLVM_DEBUG(dbgs() << "Unhandled element type for vector shift");
1048+
return None;
10461049
case 8:
10471050
if (Imm > 7)
10481051
return None;

0 commit comments

Comments
 (0)