Fix a missing initialization of PostRAScheduler's AA member.

llvm-svn: 83695
This commit is contained in:
Dan Gohman 2009-10-10 00:15:38 +00:00
parent 5141b26ffa
commit b98d95f4f9

View File

@ -229,6 +229,8 @@ static bool isSchedulingBoundary(const MachineInstr *MI,
}
bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
AA = &getAnalysis<AliasAnalysis>();
// Check for explicit enable/disable of post-ra scheduling.
if (EnablePostRAScheduler.getPosition() > 0) {
if (!EnablePostRAScheduler)