[llvm] r245341 - [PM/AA] Add using declarations to avoid hiding virtual overloads.
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 13:28:40 PDT 2015
Author: chandlerc
Date: Tue Aug 18 15:28:40 2015
New Revision: 245341
URL: http://llvm.org/viewvc/llvm-project?rev=245341&view=rev
Log:
[PM/AA] Add using declarations to avoid hiding virtual overloads.
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.
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysisCounter.h
llvm/trunk/include/llvm/Analysis/GlobalsModRef.h
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysisCounter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysisCounter.h?rev=245341&r1=245340&r2=245341&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysisCounter.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysisCounter.h Tue Aug 18 15:28:40 2015
@@ -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;
};
Modified: llvm/trunk/include/llvm/Analysis/GlobalsModRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/GlobalsModRef.h?rev=245341&r1=245340&r2=245341&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/GlobalsModRef.h (original)
+++ llvm/trunk/include/llvm/Analysis/GlobalsModRef.h Tue Aug 18 15:28:40 2015
@@ -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;
More information about the llvm-commits
mailing list