mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Clear VisitedPHIs after use.
llvm-svn: 84080
This commit is contained in:
parent
907fd9c3fb
commit
37a7a18748
@ -203,8 +203,10 @@ namespace {
|
|||||||
BasicAliasAnalysis() : NoAA(&ID) {}
|
BasicAliasAnalysis() : NoAA(&ID) {}
|
||||||
AliasResult alias(const Value *V1, unsigned V1Size,
|
AliasResult alias(const Value *V1, unsigned V1Size,
|
||||||
const Value *V2, unsigned V2Size) {
|
const Value *V2, unsigned V2Size) {
|
||||||
|
assert(VisitedPHIs.empty() && "VisitedPHIs must be cleared after use!");
|
||||||
|
AliasResult Alias = aliasCheck(V1, V1Size, V2, V2Size);
|
||||||
VisitedPHIs.clear();
|
VisitedPHIs.clear();
|
||||||
return aliasCheck(V1, V1Size, V2, V2Size);
|
return Alias;
|
||||||
}
|
}
|
||||||
|
|
||||||
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
|
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
|
||||||
|
Loading…
Reference in New Issue
Block a user