[Attributor][Fix] Add overrides for AA2HS analysis

This commit is contained in:
Giorgis Georgakoudis 2021-07-22 18:20:14 -07:00
parent e4ed93cb25
commit eaab880e45
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}