diff options
| author | Dan Gohman <gohman@apple.com> | 2009-10-10 00:15:38 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-10-10 00:15:38 +0000 |
| commit | 26e9b89b7cd920ea43ec59220c62d40a22d6030b (patch) | |
| tree | f1651c4550fd489675d4787195d6eafac79efbc5 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
| parent | c4859baea4af6b2b5865c07aab4eb9089a8a9ae6 (diff) | |
| download | llvm-26e9b89b7cd920ea43ec59220c62d40a22d6030b.zip llvm-26e9b89b7cd920ea43ec59220c62d40a22d6030b.tar.gz llvm-26e9b89b7cd920ea43ec59220c62d40a22d6030b.tar.bz2 | |
Fix a missing initialization of PostRAScheduler's AA member.
llvm-svn: 83695
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index ad8ba6c..66bcf8ce 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -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) |
