[PM/AA] Add using declarations to avoid hiding virtual overloads.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 18 Aug 2015 20:28:40 +0000 (20:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 18 Aug 2015 20:28:40 +0000 (20:28 +0000)
Note that this actually has no functional change -- we never call these
methods using the derived type. But it is still cleaner and fixes a GCC
warning.

Spotted by Dave in code review and the warning spotted by Joerg on IRC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245341 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AliasAnalysisCounter.h
include/llvm/Analysis/GlobalsModRef.h

index 8a7621f..ca65d0f 100644 (file)
@@ -48,6 +48,7 @@ public:
   AliasResult alias(const MemoryLocation &LocA,
                     const MemoryLocation &LocB) override;
 
+  using AliasAnalysis::getModRefInfo;
   ModRefInfo getModRefInfo(ImmutableCallSite CS,
                            const MemoryLocation &Loc) override;
 };
index c081cc3..faf7650 100644 (file)
@@ -96,6 +96,8 @@ public:
   //
   AliasResult alias(const MemoryLocation &LocA,
                     const MemoryLocation &LocB) override;
+
+  using AliasAnalysis::getModRefInfo;
   ModRefInfo getModRefInfo(ImmutableCallSite CS,
                            const MemoryLocation &Loc) override;