Fix a missing initialization of PostRAScheduler's AA member.
authorDan Gohman <gohman@apple.com>
Sat, 10 Oct 2009 00:15:38 +0000 (00:15 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 10 Oct 2009 00:15:38 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83695 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PostRASchedulerList.cpp

index ad8ba6c01379b1a90468a801bd19dfbe22428b1f..66bcf8cec82e6e0f53973c0a70d9797847850668 100644 (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)