This is an archive of the discontinued LLVM Phabricator instance.

Make HasWinCFI a plain bool instead of Optional<bool>
ClosedPublic

Authored by ssijaric on Aug 31 2018, 3:04 PM.

Details

Summary

Reid suggested making HasWinCFI a plain bool defaulting to false in D50288.

It's needed in order to add HasWinCFI to MIRPrinter (D51201 adds HasWinCFI to MIRParser only). Otherwise, we'll get an assertion

HasWinCFI.hasValue() && "HasWinCFI not set yet!"'

Also, a few ARM64 Windows test cases will fail with the same assert if the ARM64 MCLayer part (D50166) goes in before the frame lowering part that sets HasWinCFI (D50288 as of now).

Diff Detail

Repository
rL LLVM

Event Timeline

ssijaric created this revision.Aug 31 2018, 3:04 PM
rnk accepted this revision.Aug 31 2018, 3:21 PM

lgtm

This revision is now accepted and ready to land.Aug 31 2018, 3:21 PM
This revision was automatically updated to reflect the committed changes.