[llvm-commits] CVS: llvm/lib/Analysis/BasicAliasAnalysis.cpp
Anton Korobeynikov
asl at math.spbu.ru
Mon Jun 18 10:13:52 PDT 2007
Changes in directory llvm/lib/Analysis:
BasicAliasAnalysis.cpp updated: 1.111 -> 1.112
---
Log message:
Make BasicAliasAnalysis correctly register itself. Patch by Devang
---
Diffs of the changes: (+2 -0)
BasicAliasAnalysis.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.111 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.112
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.111 Wed May 2 20:11:53 2007
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp Mon Jun 18 12:13:29 2007
@@ -38,6 +38,7 @@
struct VISIBILITY_HIDDEN NoAA : public ImmutablePass, public AliasAnalysis {
static char ID; // Class identification, replacement for typeinfo
NoAA() : ImmutablePass((intptr_t)&ID) {}
+ NoAA(intptr_t PID) : ImmutablePass(PID) { }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<TargetData>();
@@ -93,6 +94,7 @@
/// derives from the NoAA class.
struct VISIBILITY_HIDDEN BasicAliasAnalysis : public NoAA {
static char ID; // Class identification, replacement for typeinfo
+ BasicAliasAnalysis() : NoAA((intptr_t)&ID) { }
AliasResult alias(const Value *V1, unsigned V1Size,
const Value *V2, unsigned V2Size);
More information about the llvm-commits
mailing list