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 c4859baea4
commit 26e9b89b7c
1 changed files with 2 additions and 0 deletions

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)