This is an archive of the discontinued LLVM Phabricator instance.

[DAG] OptLevelChanger - fix uninitialized variable analyzer warning (PR44471)
ClosedPublic

Authored by RKSimon on Feb 3 2020, 4:30 AM.

Details

Summary

Ensure that OptLevelChanger::SavedFastISel is initialized in the constructor.

This should be NFC - as the same 'same opt level' early-out is used in the destructor as well, so SavedFastISel is only actually referenced in the general case.

Diff Detail

Event Timeline

RKSimon created this revision.Feb 3 2020, 4:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 4:30 AM
RKSimon retitled this revision from [DAG] OptLevelChanger - fix uninitialized variable analyzer warning to [DAG] OptLevelChanger - fix uninitialized variable analyzer warning (PR44471).Feb 3 2020, 5:12 AM
This revision is now accepted and ready to land.Feb 3 2020, 11:49 AM
This revision was automatically updated to reflect the committed changes.