[llvm] 7ac9662 - [AArch64][GlobalISel] Add missing default statement to a switch in the selector.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 18:00:32 PST 2019
Author: Amara Emerson
Date: 2019-12-06T17:43:27-08:00
New Revision: 7ac966240184e604c03a7caf62f070ebb2977498
URL: https://github.com/llvm/llvm-project/commit/7ac966240184e604c03a7caf62f070ebb2977498
DIFF: https://github.com/llvm/llvm-project/commit/7ac966240184e604c03a7caf62f070ebb2977498.diff
LOG: [AArch64][GlobalISel] Add missing default statement to a switch in the selector.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
index 29fa8c0f9632..2345fa7cee1b 100644
--- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
@@ -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;
More information about the llvm-commits
mailing list