Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Check if machine loop is passed while getting loop alignment (#…
…77283) After d6bb96e, 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.
- Loading branch information