forked from OSchip/llvm-project
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
This commit is contained in:
parent
c5798a3a59
commit
7feabf0643
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue