aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-10 00:15:38 +0000
committerDan Gohman <gohman@apple.com>2009-10-10 00:15:38 +0000
commit101611d6083ca81b9bcf86d51be4717fbe1edc5a (patch)
tree6e5c14005578f31625b5c80b8d53eeb431d62f58 /lib/CodeGen/PostRASchedulerList.cpp
parent04e1b1d338e24537ab7c42bd0a1f0bf544732080 (diff)
downloadexternal_llvm-101611d6083ca81b9bcf86d51be4717fbe1edc5a.zip
external_llvm-101611d6083ca81b9bcf86d51be4717fbe1edc5a.tar.gz
external_llvm-101611d6083ca81b9bcf86d51be4717fbe1edc5a.tar.bz2
Fix a missing initialization of PostRAScheduler's AA member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index ad8ba6c..66bcf8c 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/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)