mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user