[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
Please register or sign in to comment