[Attributor][Fix] Add overrides for AA2HS analysis
authorGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Fri, 23 Jul 2021 01:20:14 +0000 (18:20 -0700)
committerGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Fri, 23 Jul 2021 01:20:14 +0000 (18:20 -0700)
llvm/lib/Transforms/IPO/OpenMPOpt.cpp

index 3d9bbac..6c4f410 100644 (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);
   }