[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 8a7621ffab99f053933a4459bf16784e7b36ad0d..ca65d0f4fe65ecb8518e42fddfefb5a943aeb219 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 c081cc357bc0d5620e64a796e7344f1be33f8e00..faf76507a8da3f5d11ff9acf3bd55847f2d3992f 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;