[AArch64][GlobalISel] Add missing default statement to a switch in the selector.
authorAmara Emerson <aemerson@apple.com>
Sat, 7 Dec 2019 01:43:27 +0000 (17:43 -0800)
committerAmara Emerson <aemerson@apple.com>
Sat, 7 Dec 2019 01:43:27 +0000 (17:43 -0800)
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp

index 29fa8c0..2345fa7 100644 (file)
@@ -1043,6 +1043,9 @@ static Optional<int64_t> getVectorSHLImm(LLT SrcTy, Register Reg, MachineRegiste
   if (Imm < 0)
     return None;
   switch (SrcTy.getElementType().getSizeInBits()) {
+  default:
+    LLVM_DEBUG(dbgs() << "Unhandled element type for vector shift");
+    return None;
   case 8:
     if (Imm > 7)
       return None;