forked from OSchip/llvm-project
[Attributor][Fix] Add overrides for AA2HS analysis
This commit is contained in:
parent
e4ed93cb25
commit
eaab880e45
|
@ -2585,11 +2585,11 @@ struct AAHeapToSharedFunction : public AAHeapToShared {
|
|||
findPotentialRemovedFreeCalls(A);
|
||||
}
|
||||
|
||||
bool isAssumedHeapToShared(CallBase &CB) const {
|
||||
bool isAssumedHeapToShared(CallBase &CB) const override {
|
||||
return isValidState() && MallocCalls.count(&CB);
|
||||
}
|
||||
|
||||
bool isAssumedHeapToSharedRemovedFree(CallBase &CB) const {
|
||||
bool isAssumedHeapToSharedRemovedFree(CallBase &CB) const override {
|
||||
return isValidState() && PotentialRemovedFreeCalls.count(&CB);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue