[llvm] r364300 - [ARM] Fix buildbot failure due to -Werror.
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 05:23:46 PDT 2019
Author: statham
Date: Tue Jun 25 05:23:46 2019
New Revision: 364300
URL: http://llvm.org/viewvc/llvm-project?rev=364300&view=rev
Log:
[ARM] Fix buildbot failure due to -Werror.
Including both 'case ARM_AM::uxtw' and 'default' in the getShiftOp
switch caused a buildbot to fail with
error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp?rev=364300&r1=364299&r2=364300&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp Tue Jun 25 05:23:46 2019
@@ -251,7 +251,6 @@ public:
case ARM_AM::asr: return 2;
case ARM_AM::ror:
case ARM_AM::rrx: return 3;
- case ARM_AM::uxtw:
default:
llvm_unreachable("Invalid ShiftOpc!");
}
More information about the llvm-commits
mailing list