diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-17 18:00:41 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-17 18:00:41 +0000 |
commit | 936ea41c5926db650b5fc577f18914d04d1fe899 (patch) | |
tree | b205d901b48e685ebead9050624123b2b8029a04 /lib/Target/ARM | |
parent | 53237b1027420591c676a1bc3ed89b15c19b4e2f (diff) | |
download | external_llvm-936ea41c5926db650b5fc577f18914d04d1fe899.zip external_llvm-936ea41c5926db650b5fc577f18914d04d1fe899.tar.gz external_llvm-936ea41c5926db650b5fc577f18914d04d1fe899.tar.bz2 |
explicitly handle no-op cases for clarity. Fixes clang warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp index e36935a..620e763 100644 --- a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp +++ b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp @@ -459,6 +459,9 @@ static inline void getImmShiftSE(ARM_AM::ShiftOpc &ShOp, unsigned &ShImm) { if (ShImm != 0) return; switch (ShOp) { + case ARM_AM::no_shift: + case ARM_AM::rrx: + break; case ARM_AM::lsl: ShOp = ARM_AM::no_shift; break; |