mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Fix memory leak.
llvm-svn: 38469
This commit is contained in:
parent
be352027e6
commit
f1b6294e80
@ -130,8 +130,14 @@ public:
|
||||
}
|
||||
|
||||
// Access AnalysisResolver
|
||||
inline void setResolver(AnalysisResolver *AR) { Resolver = AR; }
|
||||
inline AnalysisResolver *getResolver() { return Resolver; }
|
||||
inline void setResolver(AnalysisResolver *AR) {
|
||||
assert (!Resolver && "Resolver is already set");
|
||||
Resolver = AR;
|
||||
}
|
||||
inline AnalysisResolver *getResolver() {
|
||||
assert (Resolver && "Resolver is not set");
|
||||
return Resolver;
|
||||
}
|
||||
|
||||
/// getAnalysisUsage - This function should be overriden by passes that need
|
||||
/// analysis information to do their job. If a pass specifies that it uses a
|
||||
|
@ -1380,9 +1380,6 @@ void PMStack::push(Pass *P) {
|
||||
PM->setTopLevelManager(TPM);
|
||||
}
|
||||
|
||||
AnalysisResolver *AR = new AnalysisResolver(*Top);
|
||||
P->setResolver(AR);
|
||||
|
||||
S.push_back(PM);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user