Unverified Commit 053aed20 authored by Aiden Grossman's avatar Aiden Grossman Committed by GitHub
Browse files

[X86] Check if machine loop is passed while getting loop alignment (#77283)

After d6bb96e6, calling
getPrefLoopAlignment without passing in a pointer to a MachineLoop
causes a segmentation fault. This conflicts with the API in
TargetLoweringBase where the default MachineLoop pointer passed is
nullptr. This patch fixes this by checking if the pointer points to
something before enabling the optional functionality.
parent 01410103
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment