From 466327d604c4fedb7bde059aa0a4053d766428fe Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Thu, 24 Mar 2011 21:11:26 +0000 Subject: [PATCH] Fix small bug in ThumbExpandImm_C; arguments to a call to 'bits' were in the wrong order. llvm-svn: 128237 --- lldb/source/Plugins/Process/Utility/ARMUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/Utility/ARMUtils.h b/lldb/source/Plugins/Process/Utility/ARMUtils.h index 7b614d876adc..71ee03afe99a 100644 --- a/lldb/source/Plugins/Process/Utility/ARMUtils.h +++ b/lldb/source/Plugins/Process/Utility/ARMUtils.h @@ -267,7 +267,7 @@ static inline uint32_t ThumbExpandImm_C(uint32_t opcode, uint32_t carry_in, uint if (bits(imm12, 11, 10) == 0) { - switch (bits(imm12, 8, 9)) { + switch (bits(imm12, 9, 8)) { case 0: imm32 = abcdefgh; break;