[llvm-bugs] [Bug 36459] New: MIR: Stack object without alignment causes div by 0 in estimateStackSize

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 20 10:50:57 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36459

            Bug ID: 36459
           Summary: MIR: Stack object without alignment causes div by 0 in
                    estimateStackSize
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: francisvm at yahoo.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19916
  --> https://bugs.llvm.org/attachment.cgi?id=19916&action=edit
mir-crash

The parser accepts it as the alignment is not mandatory.

We should come up with some default alignment or something similar.

AArch64FrameLowering::determineCalleeSaves
MachineFrameInfo::estimateStackSize
-> 153      Offset = (Offset+Align-1)/Align*Align;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180220/57c8fdc1/attachment.html>


More information about the llvm-bugs mailing list