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

Reid Kleckner <r...@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r...@google.com
         Resolution|---                         |FIXED

--- Comment #1 from Reid Kleckner <r...@google.com> ---
Thanks for the report. I broke this in r253059.

What happened was we had a function that:
- Used no callee-saved registers (because -O0)
- Used the C++ personality function
- Did not have any EH pads

We have logic that allocates an UnwindHelp fixed stack object and initializes
it to -2. That logic was checking for the MSVC C++ EH personality, and it was
forgetting to handle the case that there were no existing fixed stack objects.
In that case, it used offset 0 for UnwindHelp, which is the offset of the
return address.

I fixed this with two changes in r253245:
- If there are no fixed stack objects, use offset -SlotSize, which is after the
return address
- Don't allocate UnwindHelp at all if there are no funclets

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to