diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-08-12 17:59:58 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-12 17:59:58 +0000 |
commit | 7feabf06433e56fdfc1aaf1a6f7599ea413fe12f (patch) | |
tree | dae48e1f8d42f12d8c1d2d7191026ef7fe9a8c18 | |
parent | c5798a3a59d5fde7c60f9224c7f2954e38d7950c (diff) | |
download | bcm5719-llvm-7feabf06433e56fdfc1aaf1a6f7599ea413fe12f.tar.gz bcm5719-llvm-7feabf06433e56fdfc1aaf1a6f7599ea413fe12f.zip |
Fix a logic error (Division by zero) uncovered by the static analyzer.
A8.6.391 VST1 (multiple single elements)
alignment = if align == '00' then 1 else 4 << UInt(align);
llvm-svn: 137477
-rw-r--r-- | lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp index 7a0a5318428..4c0de5bcbac 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp @@ -11640,7 +11640,7 @@ EmulateInstructionARM::EmulateVST1Multiple (const uint32_t opcode, ARMEncoding e // alignment = if align == Ô00Õ then 1 else 4 << UInt(align); if (align == 0) - alignment = 0; + alignment = 1; else alignment = 4 << align; |