[Lldb-commits] [lldb] r137477 - /lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Johnny Chen johnny.chen at apple.com
Fri Aug 12 10:59:58 PDT 2011


Author: johnny
Date: Fri Aug 12 12:59:58 2011
New Revision: 137477

URL: http://llvm.org/viewvc/llvm-project?rev=137477&view=rev
Log:
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);

Modified:
    lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=137477&r1=137476&r2=137477&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Fri Aug 12 12:59:58 2011
@@ -11640,7 +11640,7 @@
                     
                 // alignment = if align == Ô00Õ then 1 else 4 << UInt(align);
                 if (align == 0)
-                    alignment = 0;
+                    alignment = 1;
                 else
                     alignment = 4 << align;
                     





More information about the lldb-commits mailing list