[llvm] r251348 - Initialize BasicAAWrapperPass in it's constructor
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 14:22:58 PDT 2015
Author: kfischer
Date: Mon Oct 26 16:22:58 2015
New Revision: 251348
URL: http://llvm.org/viewvc/llvm-project?rev=251348&view=rev
Log:
Initialize BasicAAWrapperPass in it's constructor
Summary: This idiom is used elsewhere in LLVM, but was overlooked here.
Reviewers: chandlerc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D13628
Modified:
llvm/trunk/include/llvm/Analysis/BasicAliasAnalysis.h
llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Modified: llvm/trunk/include/llvm/Analysis/BasicAliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BasicAliasAnalysis.h?rev=251348&r1=251347&r2=251348&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BasicAliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/BasicAliasAnalysis.h Mon Oct 26 16:22:58 2015
@@ -203,7 +203,7 @@ class BasicAAWrapperPass : public Functi
public:
static char ID;
- BasicAAWrapperPass() : FunctionPass(ID) {}
+ BasicAAWrapperPass();
BasicAAResult &getResult() { return *Result; }
const BasicAAResult &getResult() const { return *Result; }
Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=251348&r1=251347&r2=251348&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Mon Oct 26 16:22:58 2015
@@ -1567,6 +1567,10 @@ BasicAAResult BasicAA::run(Function &F,
AM->getCachedResult<LoopAnalysis>(F));
}
+BasicAAWrapperPass::BasicAAWrapperPass() : FunctionPass(ID) {
+ initializeBasicAAWrapperPassPass(*PassRegistry::getPassRegistry());
+}
+
char BasicAAWrapperPass::ID = 0;
void BasicAAWrapperPass::anchor() {}
More information about the llvm-commits
mailing list