[llvm] b47c7cd - Fix -Wcovered-switch-default warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 11 03:18:57 PST 2019
Author: Simon Pilgrim
Date: 2019-11-11T11:18:44Z
New Revision: b47c7cd4d6a130be6e1cae4f18e65668623c5985
URL: https://github.com/llvm/llvm-project/commit/b47c7cd4d6a130be6e1cae4f18e65668623c5985
DIFF: https://github.com/llvm/llvm-project/commit/b47c7cd4d6a130be6e1cae4f18e65668623c5985.diff
LOG: Fix -Wcovered-switch-default warning. NFCI.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index afe4f1402cf3..169c35c49607 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -1915,9 +1915,8 @@ struct RegPairInfo {
case ZPR:
case FPR128:
return 16;
- default:
- llvm_unreachable("Unsupported type");
}
+ llvm_unreachable("Unsupported type");
}
bool isScalable() const { return Type == PPR || Type == ZPR; }
More information about the llvm-commits
mailing list